You've already forked FrameTour-BE
任务调度修改
This commit is contained in:
@ -82,7 +82,7 @@
|
||||
<select id="selectNotRunning" resultType="com.ycwl.basic.model.pc.task.resp.TaskRespVO">
|
||||
select id, worker_id, member_id, template_id, scenic_id, task_params, video_url, `status`, result, create_time, update_time
|
||||
from task
|
||||
where status = 0 and worker_id is null
|
||||
where status = 0 and worker_id is null and scenic_id not in (select scenic_only from render_worker where scenic_only is not null and status = 1)
|
||||
limit 1
|
||||
</select>
|
||||
<select id="selectAllNotRunning" resultType="com.ycwl.basic.model.pc.task.entity.TaskEntity">
|
||||
@ -133,4 +133,9 @@
|
||||
from task
|
||||
where status = 2
|
||||
</select>
|
||||
<select id="selectNotRunningByScenicId" resultType="com.ycwl.basic.model.pc.task.resp.TaskRespVO">
|
||||
select id, worker_id, member_id, template_id, scenic_id, task_params, video_url, `status`, result, create_time, update_time
|
||||
from task
|
||||
where status = 0 and worker_id is null and scenic_id = #{scenicId}
|
||||
</select>
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user