payu-org / payu

A workflow management tool for numerical models on the NCI computing systems
Apache License 2.0
18 stars 25 forks source link

payu archive does not override archive option #378

Open aidanheerdegen opened 8 months ago

aidanheerdegen commented 8 months ago

It is possible to prevent archiving of outputs by setting

archive: false

in config.yaml.

This is useful for testing and debug purposes. To check the state of a run at completion, before payu starts deleting and moving stuff.

The problem comes if the user then wants to archive the run, payu archive is exposed as a CLI argument, but it doesn't run because archive: false is set.

Options include adding a --force option to override the config.yaml setting, or override by default if archive is called directly from the command line.