paris-saclay-cds / ramp-board

RAMP packages: database, backend, frontend, utilities
https://paris-saclay-cds.github.io/ramp-docs/
BSD 3-Clause "New" or "Revised" License
14 stars 17 forks source link

error when launching single dispatcher using --hunger-policy #426

Open maikia opened 4 years ago

maikia commented 4 years ago

When (locally) I follow the docs to run an event and run a single dispatcher using a given command:

~/ramp_deployment $ ramp launch dispatcher --event-config events/iris_test/config.yml --hunger-policy sleep -vv

I am receiving an error:

Error: no such option: --hunger-policy

It runs alright if the --hunger-policy option is removed

Description

Steps/Code to Reproduce

Expected Results

Actual Results

Versions

glemaitre commented 4 years ago

True. We need to add the parameter to the signature. The code already use a default: https://github.com/paris-saclay-cds/ramp-board/blob/master/ramp-engine/ramp_engine/cli.py#L81