Skip to content

Commit

Permalink
added time sleep to bane callback and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalvin committed Jan 2, 2025
1 parent 4435d67 commit e484f3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions flint/source_finding/aegean.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. ")


Expand Down

0 comments on commit e484f3b

Please sign in to comment.