Skip to content

Bug with YAML anchor #9

@gdolle

Description

@gdolle

We should be able to use YAML anchor,
http://docs.getcloudify.org/dev/blueprints/spec-dsl-definitions/

But it seems the sbatch there's a bug with the parser. The generated slurm batch script generated
goes wrong with get_input entries.

For example we might want to do something like this:

# blueprint
dsl_definitions:
    # Create an alias
    - &job_properties_default
          modules:
              - gcc/6.4.0
              - openmpi/1.10.7_gcc640
          partition: 'public'
          home: '${HOME}:/home/${USER}'
          volumes:
              - '/scratch'
              - '${HOME}/test:/test'
          image: '${HOME}/singularity.simg'
          command: 'echo failed'
          nodes: 1
          tasks: 1
          tasks_per_node: 1
          max_time: '00:10:00'

#   ...

node_types:
    myjob:
        type: hpc.nodes.singularity_job
        job_options:
            default:
                <<: *job_properties_default # Call the alias
                command: echo "toto"  # Override command key only !

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions