问题
The Hospital docs says:
you should be able to call killFlow with the UUID associated with the failing flow in the node’s log messages.
I obviously can't access the node logs from my RPC client.
So how am I supposed to get a list of flows in the hospital, find the reason why they were put in the hospital and kill the ones that I know will never complete?
回答1:
- Open the node terminal.
- Type
run stateMachinesSnapshot
to see all of the current flows. - Get the ID of the hospitalized flow then run
flow kill
with that ID. - Obviously, your RPC user must have the right permissions (see here).
来源:https://stackoverflow.com/questions/64815639/how-do-i-kill-a-flow-in-the-hospital