Skip to content

Pausing a plan returns an event containing an error #251

@joeshannon

Description

@joeshannon

When pausing the run engine via blueapi (blueapi controller pause) the status message looks like this:

{
   "state":"PAUSED",
   "task_status":{
      "task_id":"977ad14b-e009-43cc-9a6a-4fd3a77c1c08",
      "task_complete":true,
      "task_failed":true
   },
   "errors":[
      "\nYour RunEngine is entering a paused state. These are your options for changing\nthe state of the RunEngine:\n\nRE.resume()    Resume the plan.\nRE.abort()     Perform cleanup, then kill plan. Mark exit_stats='aborted'.\nRE.stop()      Perform cleanup, then kill plan. Mark exit_status='success'.\nRE.halt()      Emergency Stop: Do not perform cleanup --- just stop.\n"
   ],
   "warnings":[
      
   ]
}

Since the errors list is populated, this is considered an error by clients so they might stop listening to relevant events.

Additionally the message content should not really be sent via blueapi as this is designed for using the RE in an interpreter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingc: workerRelates to worker code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions