Skip to content

Commit 729ad6c

Browse files
committed
Include more-granular scopes, typo fix
1 parent 54c34bb commit 729ad6c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

rfcs/0190-queue-change-task-run-priority.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This RFC proposes new API method that would allow to change the priority of the
1212
## Motivation
1313

1414
There 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

1717
Instead 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

4142
Current order for picking up tasks is based on the task priority and insertion time (FIFO).
4243
This RFC proposes to change the priority only, and leave the insertion time as is.
4344

44-
4545
### Other considerations
4646

4747
Chain of Trust validation might be broken if we change too much of the task definition or run.
4848
We need to make sure we don't break it with this change.
4949

50-
51-
52-
5350
## Implementation
5451

5552
_pending_

0 commit comments

Comments
 (0)