Skip to content

Commit

Permalink
0003542: Somestimes jobs are loaded and executed on not assigned node
Browse files Browse the repository at this point in the history
groups
  • Loading branch information
mmichalek committed May 8, 2018
1 parent 83ae02e commit 771fdc3
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -276,8 +276,12 @@ protected boolean checkPrerequsites(boolean force) {
}
}

if(jobDefinition.getNodeGroupId() != null && !jobDefinition.getNodeGroupId().equals("ALL") && !jobDefinition.getNodeGroupId().equals(engine.getNodeService().findIdentity().getNodeGroupId())){
log.info("Job should be only run on node groups '{}' but this is '{}'", jobDefinition.getNodeGroupId(), engine.getNodeService().findIdentity().getNodeGroupId());
if (jobDefinition.getNodeGroupId() != null
&& !jobDefinition.getNodeGroupId().equals("ALL")
&& !jobDefinition.getNodeGroupId().equals(engine.getNodeService().findIdentity().getNodeGroupId())){
log.info("Job should be only run on node groups '{}' but this is '{}'",
jobDefinition.getNodeGroupId(),
engine.getNodeService().findIdentity().getNodeGroupId());
return false;
}

Expand Down

0 comments on commit 771fdc3

Please sign in to comment.