because you are using it outside the `workflow.onC...
# bacass
s
because you are using it outside the
workflow.onComplete
call, like here https://github.com/nf-core/bacass/blob/cb0d378785c553f9d281e2dab0f8c9cd3d8bd6fd/main.nf#L80