You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if the user has not set the secret for OPTIONAL_PROCESS, the pipeline dies with the following error:
ERROR ~ Error executing process > 'SUMMARY_WF:OPTIONAL_PROCESS (1)'
Caused by:
Required secret is missing: 'API_KEY'
As far as I can tell from the Nextflow docs, the secret: directive does not include an optional parameter.
Usage scenario
To allow secrets to be optional instead of required. If the secret is not set for the target process, then the environmental variable is empty, and the pipeline developer can thus include a check for the env variable in their code (e.g., if os.getenv("API_KEY") is None:).
Suggest implementation
Add an optional parameter to the secrets: directive.
The text was updated successfully, but these errors were encountered:
New feature
I want to run an optional process only if the user has provided a secret. Example code:
Currently, if the user has not set the secret for OPTIONAL_PROCESS, the pipeline dies with the following error:
As far as I can tell from the Nextflow docs, the
secret:
directive does not include anoptional
parameter.Usage scenario
To allow secrets to be optional instead of required. If the secret is not set for the target process, then the environmental variable is empty, and the pipeline developer can thus include a check for the env variable in their code (e.g.,
if os.getenv("API_KEY") is None:
).Suggest implementation
Add an
optional
parameter to thesecrets:
directive.The text was updated successfully, but these errors were encountered: