Similar & related:
Right now, Nextflow has the built-in implicit
task
,
workflow
, and
nextflow
variables that provide important information inside the pipeline about the execution contexts. (docs: https://www.nextflow.io/docs/latest/script.html#implicit-variables )
This should ideally be expanded, somehow (?), to give an easy and consistent interface to metadata about the Seqera Platform execution context. So that there could be perhaps an implicit variable such as
workflow.tower
or
tower
which could include things like Run ID, User, Pipeline details, etc.. As the linked Feature Request details, this could also encompass things such as Okta auth user metadata provided by Seqera Platform. And as the other linked Feature Request details, this information would be critical for inclusion in things like
resourceLabels
tagging for cloud resource labels and cost tracking. Along with whatever other purposes people typically use things like
workflow
and
nextflow
variables for.
If there was some easy method to pass these critical metadata values into your Nextflow pipeline, then you could also easily leverage this by making Nextflow config files that utilize these metadata's in various ways at the config-level, so you wouldnt have to actually hard-code it into your main pipeline script. And these config files could be applied at the Compute Environment level ( https://feedback.seqera.io/feature-requests/p/allow-setting-nextflowconfig-settings-on-compute-environments-or-seqera-platform ) or based on other desired criteria.
I dont know what "Category" to apply for this Feature Request so please update the category here if you are able to, thanks.
-----
here is a tl;dr: with a real-world use case that would be able to utilize this to put all these things together
  • make metadata available inside the Nextflow pipeline with some magic implicit variable
  • use those implicit variables in a config file to apply things like
    resourceLabels
    for the AWS Batch cloud resource tagging
  • stick those config files in the Compute Environment (in Tower) so that all pipelines executed on that CE automatically get their Batch jobs tagged