How-To: Stop Worker
Stopping a worker allows you to manage resource usage and control credit consumption for your account. This guide explains how to stop a worker for a specific model.
Log in to the web console to access the Main Page, where modules for each of your models are displayed and identify the module corresponding to the model for which you want to stop a worker.

1
After the worker is stopped, it will no longer appear in the list of active workers for the model.
# Stop Worker
import LatticaManagement
# Authenticate
lattica = LatticaManagement("your_license_from_lattica_console")
# get model and worker_session
models = lattica.get_models()[0].model_id
worker_session_id = lattica.list_worker_sessions(model_id=model_id)[0].worker_session_id
# Start a new worker session. Returns an Active worker session id.
lattica.stop_worker(worker_session_id)Last updated
Was this helpful?