-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't workingneeds confirmationDoes this bug still exist?Does this bug still exist?
Description
minimal example to show behaviour of run_task hanging.
log_detector on b21 can be run without interrupting normal operations
Looks like it's probably some race condition
import os
import time
from pathlib import Path
from blueapi.client.client import BlueapiClient
from blueapi.config import (
ApplicationConfig,
ConfigLoader,
)
from blueapi.service.model import TaskRequest
import saxs_bluesky.blueapi_configs
blueapi_config_path = "/dls_sw/b21/software/blueapi/scratch/saxs_bluesky/src/saxs_bluesky/blueapi_configs/b21_blueapi_config.yaml"
config_loader = ConfigLoader(ApplicationConfig)
config_loader.use_values_from_yaml(Path(blueapi_config_path))
loaded_config = config_loader.load()
CLIENT = BlueapiClient.from_config(loaded_config)
task = TaskRequest(
name="log_detectors",
params={},
instrument_session="cm40643-4",
)
for i in range(10):
print(i)
CLIENT.run_task(task)
time.sleep(5)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds confirmationDoes this bug still exist?Does this bug still exist?