自动点击的定位修改 + 分布式任务的bug修改

This commit is contained in:
dongchangxi committed 2023-10-27 15:01:01 +08:00
1 parent f52f811b00
commit bd89422ed0
2 files changed
+7 -4

No files matched your search

+2 -2
View File
@@ -101,8 +101,8 @@ def is_run_stepx_nums(step):
def need_run_stepx(task_distributed_id):
try:
#查询task_distributed_id 对应的子任务是否正在执行,
where = f'hostname = "{hostname}" and task_distributed_id = "{task_distributed_id}" order by id desc limit 1 for update'
#查询task_distributed_id 对应的子任务是否正在执行,hostname = "{hostname}" and
where = f'task_distributed_id = "{task_distributed_id}" order by id desc limit 1 for update'
result = main_service_db.db_task_distributed_detail(where)
#如果一个子任务都没有,说明该任务还没有开始执行,需要执行step1
if result is None: