Skip to content

Commit

Permalink
Signal handling
Browse files Browse the repository at this point in the history
  • Loading branch information
maouw committed Sep 28, 2023
1 parent 61cd6eb commit 2b1403b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hyakvnc/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ def get_session():
logger.debug(f"Could not get session info for job {job_id}: {e}")
return None

sesh = repeat_until(
lambda x: get_session(), lambda x: x is not None, timeout=app_config.sbatch_post_timeout * 2
)
sesh = repeat_until(lambda: get_session(), lambda x: x is not None, timeout=app_config.sbatch_post_timeout * 2)
if not sesh:
logger.warning(f"No running VNC sessions found for job {job_id}. Canceling and exiting.")
kill_self()
Expand Down

0 comments on commit 2b1403b

Please sign in to comment.