|
@@ -112,9 +112,9 @@
|
|
|
select
|
|
|
<include refid="baseSql" />
|
|
|
from t_ds_task_group_queue
|
|
|
- where priority = (select max(priority) from t_ds_task_group_queue where group_id = #{groupId}
|
|
|
- and status = #{status} and in_queue = #{inQueue} and force_start = #{forceStart} ) and group_id = #{groupId}
|
|
|
- and status = #{status} and in_queue = #{inQueue} and force_start = #{forceStart} limit 1
|
|
|
+ where group_id = #{groupId} and status = #{status} and in_queue = #{inQueue} and force_start = #{forceStart}
|
|
|
+ order by priority desc
|
|
|
+ limit 1
|
|
|
</select>
|
|
|
|
|
|
<select id="queryByTaskId" resultType="org.apache.dolphinscheduler.dao.entity.TaskGroupQueue">
|