mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Random exec assignment depends on taskGroup name if provided (#19878)
This commit is contained in:
3
.changelog/19878.txt
Normal file
3
.changelog/19878.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: Fix an issue where a same-named task from a different group could be selected when the user clicks Exec from a task group page where multiple allocations would be valid
|
||||
```
|
||||
@@ -80,7 +80,10 @@ export default class ExecController extends Controller {
|
||||
if (this.allocationShortId) {
|
||||
allocation = this.allocations.findBy('shortId', this.allocationShortId);
|
||||
} else {
|
||||
allocation = this.allocations.find((allocation) =>
|
||||
let allocationPool = this.taskGroupName
|
||||
? this.allocations.filterBy('taskGroupName', this.taskGroupName)
|
||||
: this.allocations;
|
||||
allocation = allocationPool.find((allocation) =>
|
||||
allocation.states
|
||||
.filterBy('isActive')
|
||||
.mapBy('name')
|
||||
|
||||
Reference in New Issue
Block a user