Skip to content

Commit

Permalink
move contraintsbuilder to model
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Aguilera <[email protected]>
  • Loading branch information
jagedn committed Jul 15, 2024
1 parent e6d3dd3 commit 2a7f54e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import groovy.util.logging.Slf4j
import io.nomadproject.client.ApiClient
import io.nomadproject.client.api.JobsApi
import io.nomadproject.client.model.*
import nextflow.nomad.models.ConstraintsBuilder
import nextflow.nomad.models.JobConstraints
import nextflow.nomad.config.NomadConfig
import nextflow.nomad.models.JobVolume
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nextflow.nomad.executor
package nextflow.nomad.models

import io.nomadproject.client.model.Constraint
import nextflow.nomad.models.JobConstraintsAttr
Expand All @@ -7,7 +7,7 @@ import nextflow.nomad.models.JobConstraints

class ConstraintsBuilder {

protected static List<Constraint> constraintsSpecToList(JobConstraints spec){
static List<Constraint> constraintsSpecToList(JobConstraints spec){
def constraints = [] as List<Constraint>
if( spec?.nodeSpecs ){
def nodes = spec.nodeSpecs
Expand Down

0 comments on commit 2a7f54e

Please sign in to comment.