Skip to content

Commit

Permalink
Fix changing directory after 60 seconds if no run folder (#323)
Browse files Browse the repository at this point in the history
* Fix changing directory after 60 seconds if no run folder

* Increase run folder appear timeout to 120s
  • Loading branch information
Adoni5 authored Dec 22, 2023
1 parent caacb02 commit e71578b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/readfish/_read_until_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
protocol_service.PHASE_PAUSED,
}
# Timeout in seconds for the run folder to appear
TIMEOUT = 60
TIMEOUT = 120


class RUClient(ReadUntilClient):
Expand Down Expand Up @@ -77,9 +77,9 @@ def __init__(self, *args, **kwargs):
try:
ids_log = self.mk_run_dir.joinpath("unblocked_read_ids.txt")
ids_log.touch(exist_ok=True)
except PermissionError:
except (PermissionError, FileNotFoundError):
# TODO: log message here that fallback output is in use
self.mk_run_dir = "."
self.mk_run_dir = Path(".")
ids_log = self.mk_run_dir.joinpath("unblocked_read_ids.txt")
ids_log.touch(exist_ok=True)
self.unblock_logger = setup_logger(
Expand Down

0 comments on commit e71578b

Please sign in to comment.