lst_auto_rta.observation_data.get_current_run_info¶
- lst_auto_rta.observation_data.get_current_run_info(db_hostname: str, obs_target_query_timeout_s: Annotated[int, Gt(gt=0), Lt(lt=60)]) ObsInfo [source]¶
Queries the LST database for the current observation and observation parameters
- Parameters:
db_hostname (str) – Hostname of the DB server. Example lst101
obs_target_query_timeout_s (Annotated[int, Gt(0), Lt(60)]) – Maximal amount of time passed to query DB for observation parameters
- Raises:
pymongo.errors.ExecutionTimeout – When the database query exceeds the timeout.
pymongo.errors.PyMongoError – When the database query returned inconsistent results between data.camera and data.structure fields
- Returns:
Current observation information
- Return type: