Skip to content

Feat/add procedure api#636

Closed
d-perl wants to merge 8 commits intomainfrom
feat/add_procedure_API
Closed

Feat/add procedure api#636
d-perl wants to merge 8 commits intomainfrom
feat/add_procedure_API

Conversation

@d-perl
Copy link
Contributor

@d-perl d-perl commented Oct 17, 2025

Adds functionality to the procedure manager and associated tooling:

  • a helper class for Redis interactions, separated for frontend and backend use
  • get statuses of running procedures
  • abort procedures, reschedule aborted procedures, delete aborted procedures
  • new messages for the above

Helpful for testing:

  • run the _dev_runner.py

  • In a bec console:

from bec_server.scan_server.procedures.helper import BackendProcedureHelper
from bec_lib import messages
helper = BackendProcedureHelper(bec.connector)
msg = messages.ProcedureRequestMessage( identifier="sleep", queue="queue1", args_kwargs=((), {"time_s":5}) )
helper.request_procedure(msg)

bec-project/bec_widgets#902 can be used to monitor queues, abort and reschedule procedures

@d-perl d-perl self-assigned this Oct 17, 2025
@d-perl d-perl force-pushed the feat/add_procedure_API branch 22 times, most recently from 4eec83f to 3068d94 Compare October 27, 2025 10:28
@d-perl d-perl force-pushed the feat/add_procedure_API branch 5 times, most recently from 9418397 to 0f60b57 Compare October 28, 2025 16:01
@d-perl d-perl marked this pull request as ready for review October 29, 2025 09:16
@d-perl d-perl force-pushed the feat/add_procedure_API branch 19 times, most recently from 6538f30 to fb99f1b Compare November 12, 2025 12:09
@d-perl d-perl force-pushed the feat/add_procedure_API branch from fb99f1b to d93fb70 Compare November 12, 2025 12:10
@d-perl
Copy link
Contributor Author

d-perl commented Nov 12, 2025

Closing for new PR to see if codecov deals with it better

@d-perl d-perl closed this Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant