Skip to content

Commit

Permalink
Allow jobs not requiring any network resources
Browse files Browse the repository at this point in the history
Jobs not requiring any network resources should be allowed
even when the network fingerprinter is disabled.
  • Loading branch information
wjordan committed Aug 26, 2022
1 parent 34e4b08 commit 4313eb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/14300.txt
@@ -0,0 +1,3 @@
```release-note:improvement
scheduler: Allow jobs not requiring network resources even when no network is fingerprinted
```
5 changes: 5 additions & 0 deletions scheduler/feasible.go
Expand Up @@ -381,6 +381,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
Expand Down

0 comments on commit 4313eb1

Please sign in to comment.