Custom warning for a specific module upon specific exitStatus

Hey all :slight_smile:

I have one tool (kalign) which does not run on old cpus. I would like to ignore that specific error and let the pipeline continue, but let the user know.I handle the ignoring of the error like this: multiplesequencealign/conf/modules.config at 0b6f89f00144ac2e380554b1b4e52a901eb2d123 · luisas/multiplesequencealign · GitHub I now would like to also launch a custom warning to let the user know this is happening - does anybody have any idea how to do it?

From the workflow.nf i tried MODULE_NAME.task.exitStatus and MODULE_NAME.exitStatus but i get an error in both cases

Also, errorStrategy = {task.exitStatus == 132 ? ‘ignore’ && log.warn(‘Old CPU’) : ‘retry’} will not work as it tries to assign the log.warn to the error strategy

In the end Jose fixed it this way → Warning when kalign fails with error 132 by JoseEspinosa · Pull Request #152 · nf-core/multiplesequencealign · GitHub