Skip to content

Azure Batch executor does not always respect error strategy #5350

Open
@raylim

Description

@raylim

Bug report

Expected behavior and actual behavior

Error strategy should be respected, but when a process fails due to running out of walltime, the whole pipeline is terminated.

Steps to reproduce the problem

process TEST {
    executor 'azurebatch'
    container 'ubuntu'
    errorStrategy 'ignore'
    time "10s"
    script:
    """
    sleep 100
    """
}

workflow {
    TEST()
}

Program output

$ nextflow run main.nf  -w az://nextflow/test                                                                        [90/4787]

 N E X T F L O W   ~  version 24.08.0-edge

Launching `main.nf` [grave_hopper] DSL2 - revision: 8398d93773

executor >  azurebatch (1)
[6b/6fa6f5] TEST [100%] 1 of 1, failed: 1 ✘
ERROR ~ Error executing process > 'TEST'

Caused by:
  The task was ended by user request


Command executed:

  sleep 100

Command exit status:
  -

Command output:
  (empty)

Work dir:
  az://nextflow/test/6b/6fa6f56c51b72a15dde5893e4ac028

Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`

 -- Check '.nextflow.log' file for details

Environment

  • Nextflow version: 24.08.0-edge build 5922
  • Java version: openjdk 17.0.3-internal 2022-04-19
  • Operating system: Linux
  • Bash version: (GNU bash, version 4.4.19(1)-release (x86_64-redhat-linux-gnu)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions