Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with YAML anchor #9

Open
gdolle opened this issue Jan 17, 2018 · 0 comments
Open

Bug with YAML anchor #9

gdolle opened this issue Jan 17, 2018 · 0 comments
Assignees
Labels

Comments

@gdolle
Copy link

gdolle commented Jan 17, 2018

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 !
@emepetres emepetres self-assigned this Jan 17, 2018
@emepetres emepetres added the bug label Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants