Skip to content

Commit 273c74a

Browse files
authored
Fix task priority name (temporalio#7952)
## What changed? - Fix name for task priority preemptable ## Why? - Without the fix the logic won't be able to parse task weight configs and causing errors "Unknown key for task priority name" and always use the default task priority weight. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s)
1 parent ef2effb commit 273c74a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/tasks/priority.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ var (
4040
}
4141

4242
PriorityValue = map[string]Priority{
43-
"high": PriorityHigh,
44-
"low": PriorityLow,
45-
"background": PriorityPreemptable,
43+
"high": PriorityHigh,
44+
"low": PriorityLow,
45+
"preemptable": PriorityPreemptable,
4646
}
4747

4848
CallerTypeToPriority = map[string]Priority{

0 commit comments

Comments
 (0)