bluesky / bluesky-queueserver

Server for queueing plans
https://blueskyproject.io/bluesky-queueserver/
BSD 3-Clause "New" or "Revised" License
11 stars 20 forks source link

Implementation of Queue Autostart Mode #269

Closed dmgav closed 1 year ago

dmgav commented 1 year ago

Implementation of 'autostart' mode, in which the queue is automatically started once plans are added to the queue or the manager becomes ready to execute plans (e.g. environment is opened). The autostart mode is enabled by calling queue_autostart API with the parameter enable=True and disabled by calling the same API with enable=False. The autostart mode is disabled automatically if the queue is stopped (using queue_stop queue instruction or queue_stop API) or a running plan was stopped, halted or aborted. The autostart mode is also disabled if the plan fails, unless the ignore_failures mode is enabled (see queue_mode API).

Another new feature was implemented after multiple request from beamline staff. In addition to run UUIDs, the worker is now collecting scan ID from start documents. The scan IDs are returned in the list of runs (re_runs API) and included in the history returned by history_get API. The scan IDs may be useful in monitoring GUI widgets, since many beamlines primarily use scan IDs to identify runs.

Description

Motivation and Context

The implemented features were requested by beamline staff.

Summary of Changes for Release Notes

Fixed

Added

Changed

Removed

How Has This Been Tested?

Detailed unit tests were implemented.