pecan
pecan copied to clipboard
Add API endpoint to kill a workflow
Sometimes, we make boo boos (e.g., requesting 100 years of met download -- oops!). In those cases, it would be nice to have a shortcut to cancel a currently running workflow. Something like:
rpecanapi::kill_run(server, workflowid)
# Candidate API endpoint: <IP>/api/workflows/cancel?workflowid=XXXX
Currently, to cancel a run, you need to do some combination of:
- Terminate the R process in Portainer
- Purge the RabbitMQ queue
- Restart RabbitMQ
Would be nice to do this in a more convenient way.
This issue is stale because it has been open 365 days with no activity.