-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve K8s retry on transient failures [ci fast]
This commit adds automatic retry for transient failures caused by: - OutOfcpu - OutOfmemory Credits: Lehmann-Fabian <fabian.lehmann@informatik.hu-berlin.de> Signed-off-by: Lehmann-Fabian <fabian.lehmann@informatik.hu-berlin.de> Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
- Loading branch information
1 parent
ab51360
commit d86ddc3
Showing
7 changed files
with
127 additions
and
8 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
modules/nextflow/src/main/groovy/nextflow/exception/K8sOutOfCpuException.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package nextflow.exception | ||
|
||
import groovy.transform.InheritConstructors | ||
|
||
/** | ||
* Exception thrown when pod cannot be scheduled due to k8s `OutOfmemory` error reason | ||
*/ | ||
@InheritConstructors | ||
class K8sOutOfCpuException extends RuntimeException implements ProcessRetryableException { | ||
} |
10 changes: 10 additions & 0 deletions
10
modules/nextflow/src/main/groovy/nextflow/exception/K8sOutOfMemoryException.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package nextflow.exception | ||
|
||
import groovy.transform.InheritConstructors | ||
|
||
/** | ||
* Exception thrown when pod cannot be scheduled due to k8s `OutOfcpu` error reason | ||
*/ | ||
@InheritConstructors | ||
class K8sOutOfMemoryException extends RuntimeException implements ProcessRetryableException { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
modules/nextflow/src/main/groovy/nextflow/exception/ProcessRetryableException.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package nextflow.exception | ||
|
||
/** | ||
* Exceptions implementing this interface will always lead to a retry | ||
*/ | ||
interface ProcessRetryableException { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters