File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ This RFC proposes new API method that would allow to change the priority of the
1212## Motivation
1313
1414There might be several use-cases when some worker pool has a lot of pending tasks and there is a need
15- to move some more important task to the top of the waiting list, or also move down less important ones.
15+ to move some more important tasks to the top of the waiting list, or also move down less important ones.
1616
1717Instead of cancelling existing tasks we can instead choose to change task run priorities.
1818
@@ -36,20 +36,17 @@ This will also require introduction of the new scopes (anyOf):
3636
3737* ` queue:change-task-run-priority-in-queue:<taskQueueId> `
3838* ` queue:change-task-run-priority:<taskId> `
39-
39+ * ` queue:lower-task-run-priority:<taskId> ` to only allow lowering the priority
40+ * ` queue:raise-task-run-priority:<taskId> ` to only allow raising the priority
4041
4142Current order for picking up tasks is based on the task priority and insertion time (FIFO).
4243This RFC proposes to change the priority only, and leave the insertion time as is.
4344
44-
4545### Other considerations
4646
4747Chain of Trust validation might be broken if we change too much of the task definition or run.
4848We need to make sure we don't break it with this change.
4949
50-
51-
52-
5350## Implementation
5451
5552_ pending_
You can’t perform that action at this time.
0 commit comments