Skip to content

Commit

Permalink
increase odin meta timeout to 30 (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
dperl-dls authored Jul 19, 2024
1 parent 1eb1c5c commit a5b3fc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/dodal/devices/detector/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ class Config:
DetectorSizeConstants: lambda d: d.det_type_string,
}

@root_validator(
pre=True, skip_on_failure=True
) # should be replaced with model_validator once move to pydantic 2 is complete
# should be replaced with model_validator once move to pydantic 2 is complete
@root_validator(pre=True)
def create_beamxy_and_runnumber(cls, values: dict[str, Any]) -> dict[str, Any]:
values["beam_xy_converter"] = DetectorDistanceToBeamXYConverter(
values["det_dist_to_beam_converter_path"]
Expand Down
4 changes: 3 additions & 1 deletion src/dodal/devices/eiger.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def set(self, value, *, timeout=None, settle_time=None, **kwargs):

STALE_PARAMS_TIMEOUT = 60
GENERAL_STATUS_TIMEOUT = 10
# Long timeout for meta file to compensate for filesystem issues
META_FILE_READY_TIMEOUT = 30
ALL_FRAMES_TIMEOUT = 120
ARMING_TIMEOUT = 60

Expand Down Expand Up @@ -305,7 +307,7 @@ def _wait_for_odin_status(self) -> StatusBase:
)
LOGGER.info("Eiger staging: awaiting odin metadata")
status &= await_value(
self.odin.meta.ready, 1, timeout=self.GENERAL_STATUS_TIMEOUT
self.odin.meta.ready, 1, timeout=self.META_FILE_READY_TIMEOUT
)
return status

Expand Down

0 comments on commit a5b3fc5

Please sign in to comment.