Allow jobs not requiring any network resources (#14300)
Jobs not requiring any network resources should be allowed even when the network fingerprinter is disabled.
This commit is contained in:
parent
b974c32ba6
commit
8ae13208c9
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
scheduler: Allow jobs not requiring network resources even when no network is fingerprinted
|
||||
```
|
|
@ -382,6 +382,11 @@ func (c *NetworkChecker) SetNetwork(network *structs.NetworkResource) {
|
|||
}
|
||||
|
||||
func (c *NetworkChecker) Feasible(option *structs.Node) bool {
|
||||
// Allow jobs not requiring any network resources
|
||||
if c.networkMode == "none" {
|
||||
return true
|
||||
}
|
||||
|
||||
if !c.hasNetwork(option) {
|
||||
|
||||
// special case - if the client is running a version older than 0.12 but
|
||||
|
|
Loading…
Reference in New Issue