DiamondLightSource / DiamondLightSource/blueapi

Provide logging and status checking on WorkerDispatcher._subprocess

Open
#1,160 2 comments 0 reactions 0 assignees View on GitHub
bug monitoring needs confirmation
Dominant language
Python
Stars
13
Forks
13
Avg merge
2d 11h
Merged PRs (30d)
25

Description

i04 was recently seeing a 504 gateway timeout when triggering BlueAPI from GDA. Following the stack of logs, it seems like BlueAPI was hanging after successfully receiving a POST request (for submitting a task).

The most likely cause of this hanging appears to be an issue with Blueapi's `WorkerDispatcher._subprocess`. However, there is currently no way to get information about its status. It would be useful to add a way to get the status of this subprocess (maybe a heartbeat?), as well as some logging

## Acceptance Criteria
- Logging statements added for this subprocess, as well as a way to get its status

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.