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
Expand the Worker Section
Click the expander in the modelâs module to open the Worker Section.
This section lists all currently running workers for the model, along with their start times.
2
Stop the Worker
Find the worker you wish to stop in the list.
Click the "x" (remove) button next to the worker's details to stop it.
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)