bluesky / bluesky-queueserver

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

Implementation of 'ignore_failures' queue mode #268

Closed dmgav closed 1 year ago

dmgav commented 1 year ago

The PR implements a new ignore_failures mode of the queue.

Description

Normal behavior of the manager in case the currently running plan fails is to stop execution of the queue and push the current plan to the beginning of the queue so that it could be restarted after the problem is fixed. In the ignore_failures mode, the manager continues with execution of the next plan even if the current plan fails. The queue is still stopped if the current plan is stopped/aborted/halted. The mode may be useful in the system running independent plans and controlled by an autonomous agent, which is responsible for processing execution results.

The queue is still stopped if the manager fails to submit the request to start a plan to the worker, but this is not expected to occur during normal operation.

Motivation and Context

Requested feature.

Summary of Changes for Release Notes

Added

How Has This Been Tested?

Unit tests are added.