-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: fix panic on alloc restore (#18356)
When restoring an allocation `WIDMgr` was not being set in the alloc runner config, resulting in a nil panic when the task runner attempted to start. Since we will often require the same configuration values when creating or restoring a new allocation, this commit moves the logic to a shared function to ensure that `addAlloc` and `restoreState` configure alloc runners with the same values.
- Loading branch information
Showing
1 changed file
with
40 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters