Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/repository/sqlcv1/concurrency.sql
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ WITH eligible_slots_per_group AS (
wcs_all.key = distinct_keys.key
AND wcs_all.tenant_id = @tenantId::uuid
AND wcs_all.strategy_id = @strategyId::bigint
ORDER BY wcs_all.priority DESC, wcs_all.sort_id ASC
ORDER BY wcs_all.is_filled DESC, wcs_all.priority DESC, wcs_all.sort_id ASC
LIMIT @maxRuns::int
) wsc ON true
), eligible_slots AS (
Expand Down Expand Up @@ -206,7 +206,7 @@ WITH eligible_slots_per_group AS (
wcs_all.key = distinct_keys.key
AND wcs_all.tenant_id = @tenantId::uuid
AND wcs_all.strategy_id = @strategyId::bigint
ORDER BY wcs_all.sort_id ASC
ORDER BY wcs_all.is_filled DESC, wcs_all.sort_id ASC
LIMIT @maxRuns::int
) cs ON true
), schedule_timeout_slots AS (
Expand Down Expand Up @@ -329,7 +329,7 @@ WITH locked_workflow_concurrency_slots AS (
wcs_all.key = distinct_keys.key
AND wcs_all.tenant_id = @tenantId::uuid
AND wcs_all.strategy_id = @strategyId::bigint
ORDER BY wcs_all.sort_id DESC
ORDER BY wcs_all.is_filled DESC, wcs_all.sort_id DESC
LIMIT @maxRuns::int
) wsc ON true
), slots_to_run AS (
Expand Down Expand Up @@ -569,7 +569,7 @@ WITH locked_workflow_concurrency_slots AS (
wcs_all.key = distinct_keys.key
AND wcs_all.tenant_id = @tenantId::uuid
AND wcs_all.strategy_id = @strategyId::bigint
ORDER BY wcs_all.sort_id ASC
ORDER BY wcs_all.is_filled DESC, wcs_all.sort_id ASC
LIMIT @maxRuns::int
) wsc ON true
), slots_to_run AS (
Expand Down
8 changes: 4 additions & 4 deletions pkg/repository/sqlcv1/concurrency.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading