Skip to content

Latest commit

 

History

History
60 lines (50 loc) · 1.92 KB

File metadata and controls

60 lines (50 loc) · 1.92 KB

Queue Server

This folder contains multiple 'startup directory' examples, and a dockerfile to run the queue server part of a docker-compose file.

The Queue Server is used as a 'source of truth' for dealing with multiple web browsers and users operating concurrently at a beamline. The Queue Server has a single instance of the Run Engine, so only one plan may be executed at a time. Future additions to ophyd websocket (or ophyd as a service) will only allow users to set a device value if the Queue Server is inactive.

Queue Server Documentation

Installing Queue Server

These instructions are for directly installing Queue Server outside of a container for development purposes. To run the queue server, redis will also need to be installed.

Install Redis (Mac)

brew update
brew install redis
brew services start redis



Install Redis (linux)

sudo apt-get install redis
sudo systemctl start redis



Optional: Create python environment

conda create -n queue_server python=3.10
activate queue_server



Install Python Packages

conda install bluesky-queueserver -c conda-forge
conda install bluesky-httpserver -c conda-forge

On testing with an M2 mac, it was found that using pyepics and ophyd installed from 'pip' resulted in errors. Only conda distributions worked.

Installing with Conda

conda install pyepics ophyd -c conda-forge

Starting the Queue Server

Start Queue Server with Default Simulated Devices and Plans

start-re-manager --zmq-publish-console ON



Start Queue Server with a startup directory


start-re-manager --zmq-publish-console ON --startup-dir /path/to/startup --keep-re



Publish Queue Server Console Output in a Terminal (optional)

qserver-console-monitor