Skip to content

Commit

Permalink
Mute transitions from PBS (#7334)
Browse files Browse the repository at this point in the history
Avoiding WARNING as logs from INFO and above are kept
centrally.
  • Loading branch information
berland authored Mar 4, 2024
1 parent a805357 commit 2a245c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ert/scheduler/openpbs_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async def poll(self) -> None:

async def _process_job_update(self, job_id: str, job: AnyJob) -> None:
significant_transitions = {"Q": ["R", "F"], "R": ["F"]}
muted_transitions = {"H": ["Q", "E"], "Q": ["E"], "R": ["E"]}
muted_transitions = {"H": ["Q", "E"], "Q": ["H", "E"], "R": ["E"]}
if job_id not in self._jobs:
return

Expand All @@ -241,7 +241,7 @@ async def _process_job_update(self, job_id: str, job: AnyJob) -> None:
return
if not new_state in significant_transitions[old_state]:
if not new_state in muted_transitions[old_state]:
logger.warning(
logger.debug(
"Ignoring transition from "
f"{old_state} to {new_state} in {iens=} {job_id=}"
)
Expand Down

0 comments on commit 2a245c4

Please sign in to comment.