DiamondLightSource / DiamondLightSource/python-murfey

Finalising all rsyncers through the instrument server seems to cause connection issues with the database

未关闭
#530 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug web ui
主要语言
Python
星标
2
派生
1
平均合并
1 天 10 小时
30 天内合并 PR
19

描述

The first error log:

`sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

[SQL: SELECT session.id, session.name, session.visit, session.started, session.current_gain_ref, session.instrument_name
FROM session
WHERE session.id = %(id_1)s]
[parameters: {'id_1': 22}]
(Background on this error at: https://sqlalche.me/e/20/e3q8)`

occurring in `validate_instrument_server_session_token` in auth.

The rsyncer finalisatons happen outside of threads (https://github.com/DiamondLightSource/python-murfey/blob/7e412424845eda96abed07165b781f433cc6ad56/src/murfey/client/multigrid_control.py#L169) which may cause issues

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。