Dynamic config in executor

Hello!

I have a working custom pipeline where the newest linter in VSCode is complaining.

The snippet of interest is <nextflow.config>:

profiles {
    standard {
        ...
    }

    cluster {
        process {
            executor = 'slurm'
            ...
        }
        executor {
            jobName = { "PipelineName-${task.name.replaceAll(" ", "_")}" }
        }
    }
}

The complaints are on the jobName line:

Dynamic config options are only allowed in the process scope

task is not defined

The intent is to have all SLURM jobs identified with “PipelineName” and the specific task the job is running.

Which would be the proper way to achieve this outcome without the linter warnings?

It is actually a bug with the linter. The executor.jobName option is an edge case I hadn’t accounted for. The fix is in progress here

Thanks a lof for the insight! I will ignore it for now, then :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.