Open mdonadoni opened 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:
set_workflow_status
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:
start_workflow
https://github.com/reanahub/reana-server/blob/3f716f7369230ab2a864b6bfcae44a952ca5bf90/reana_server/rest/workflows.py#L1136
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