Common compute environment options
Most compute environment forms share the following options.
Resource labels
Apply Resource labels to the cloud resources produced by this compute environment. Workspace default resource labels are prefilled.
Staging options
Expand Staging options to include:
- Optional pre- or post-run Bash scripts that run before or after the Nextflow pipeline runs in your environment.
- Global Nextflow configuration settings for all pipeline runs launched with this compute environment. Values defined here are prefilled in the Nextflow config file field in the pipeline launch form. You can override these values during pipeline launch.
Configuration settings in this field override the same values in the pipeline repository nextflow.config file. For configuration priority, see Nextflow config file.
Environment variables
Under Environment variables, add each variable with a Name, Value, and Target Environment:
- Head job: Adds the variable to the Nextflow head job container, which evaluates
nextflow.configand submits tasks to the compute backend. Use this target for variables that Nextflow or its plugins read, such asNXF_OPTS,NXF_JVM_ARGS,NXF_PLUGINS_DEFAULT, or proxy settings the head node uses to reach external services. - Compute job: Adds the variable to the worker containers that run individual pipeline tasks. Use this target for variables your pipeline tools read, such as
OPENAI_API_KEYfor a process that calls the OpenAI API, registry credentials needed inside the task container, or tool-specific settings likeJAVA_HOME. - Head and Compute jobs: Adds the variable to both the head job and the compute jobs. Use this target for values needed in both places, such as an HTTP proxy used by both Nextflow and task tools, or a credential needed in both the head job and individual compute tasks.
For sensitive values such as API keys and tokens, use pipeline secrets instead of custom environment variables. Seqera stores custom environment variables in the compute environment configuration, and you cannot edit them after creation. To rotate a value, recreate the compute environment.