I need to interrupt a live worker, what’s the safest way to kill it (not from the GUI, but from the command line, RPC call, python api, etc. ). ? Is there a mechanism that if a worker is interrupted, that it won’t result in incomplete / inconsistent results?
I was poking around the cryoSPARC tools API today and in the rtp (real time processing) client and from memory there were endpoints for both pausing live sessions and pausing live sessions gracefully - I haven’t got around to reverse engineering the calls yet but it should be possible
The safest way to kill a rtp worker from the icli would be to do
cryosparcm icli
rtp.pause_session("PXX", "SXX")
Where PXX
and SXX
are your project and session UIDs respectively. This will prevent incomplete/inconsistent results.