Skip to main content

stop

Function stop 

Source
pub fn stop(session: &Session) -> Result<(), CloudError>
Expand description

Stop worker mode for this engine: pause here and switch the opt-in off on the server, which ends every claim of this engine at once. The off is kept here first; the stopped opt-in’s id is kept with it (reconcile). A Cloud without an active opt-in (409 optin_inactive) is already off: that is a success, kept with an empty id, so any opt-in turned on later lifts the off.