mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
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:
3
.changelog/14300.txt
Normal file
3
.changelog/14300.txt
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user