reanahub / reana-server

REANA API server
http://reana-server.readthedocs.io/
MIT License
5 stars 37 forks source link

set_workflow_status: starting workflow should queue it #690

Open mdonadoni opened 4 months ago

mdonadoni commented 4 months ago

At the moment, calling set_workflow_status to start a workflow will result in the workflow being executed immediately, as r-server calls directly r-w-controller:

https://github.com/reanahub/reana-server/blob/3f716f7369230ab2a864b6bfcae44a952ca5bf90/reana_server/rest/workflows.py#L1510-L1519 Note that we have a second start_workflow endpoint which correctly queues the workflow:

https://github.com/reanahub/reana-server/blob/3f716f7369230ab2a864b6bfcae44a952ca5bf90/reana_server/rest/workflows.py#L1136