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
When the executor is local, the process using MY_ENV_VAR via os.environ["MY_ENV_VAR"] runs successfully.
However, when the executor is google-batch, the process throws KeyError: 'MY_ENV_VAR'.
Environmental variables set via the env config scope should be available for GCP Batch jobs... or the docs should explicitly state that env is not supported for GCP Batch.
Steps to reproduce the problem
Set variables in the env scope
Run locally; processes using the env variable should succeed
Run on GCP Batch; processes using the env variable should fail
Environment
Nextflow version: 24.10.2
Java version: 21.0.0
Operating system: Ubuntu 22.04.5
Bash version: 5.1.16
The text was updated successfully, but these errors were encountered:
Bug report
My
nextflow.config
contains:When the executor is
local
, the process usingMY_ENV_VAR
viaos.environ["MY_ENV_VAR"]
runs successfully.However, when the executor is
google-batch
, the process throwsKeyError: 'MY_ENV_VAR'
.https://www.nextflow.io/docs/latest/reference/config.html#env does not state that
env
is not supported forgoogle-batch
, so I'm assuming that there is either a bug or a lack of docs.Expected behavior and actual behavior
Environmental variables set via the
env
config scope should be available for GCP Batch jobs... or the docs should explicitly state thatenv
is not supported for GCP Batch.Steps to reproduce the problem
env
scopeEnvironment
The text was updated successfully, but these errors were encountered: