We can the use the
resourceLabels
directive to attach labels to runs which are extremely useful for higher resolution cost tracking. A common request is to be able to see the
cost of runs per user
. At the moment this is impossible because the Platform does not pass the
username
to Nextflow.
A quick win would be to set the SP
username
as an environment variable in the head job. This can be read by Nextflow and used as a
resourceLabel
tag (if the user provided the appropriate configuration)