From e484f3bb21617cdb2911b7e72b9ee39b16fc1e06 Mon Sep 17 00:00:00 2001 From: tgalvin Date: Thu, 2 Jan 2025 16:56:15 +1100 Subject: [PATCH] added time sleep to bane callback and changelog --- CHANGELOG.md | 3 +++ flint/source_finding/aegean.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddc8e02e..43208672 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ linmos images after combining into a cube, removing the weight text files) - Added a `timelimit_on_context` helper to raise an error after some specified length of time. Looking at you, BANE and issue #186. Arrrr. +- Added a `BANE` callback handler to attempt to help #186. This includes a + `AttemptRerunException` and corresponding code in `run_singularity_comand` to + retry the failing command. # 0.2.8 diff --git a/flint/source_finding/aegean.py b/flint/source_finding/aegean.py index 026c6ca5..23d53e77 100644 --- a/flint/source_finding/aegean.py +++ b/flint/source_finding/aegean.py @@ -77,6 +77,9 @@ def _bane_output_callback(line: str) -> None: assert isinstance(line, str) if "must be strictly ascending or descending" in line: + from time import sleep + + sleep(2) raise AttemptRerunException("BANE deadlock detected. ")