> For the complete documentation index, see [llms.txt](https://platformdocs.lattica.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platformdocs.lattica.ai/how-to-guides/resource-management/how-to-stop-worker.md).

# 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.

{% tabs %}
{% tab title="🌐Console" %}
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.

<figure><img src="/files/6Tx6jgrL8O8exWmLnymC" alt=""><figcaption><p>Stop Worker</p></figcaption></figure>

{% stepper %}
{% step %}

### E**xpand 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**.
  {% endstep %}

{% step %}

### S**top 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.
  {% endstep %}
  {% endstepper %}

After the worker is stopped, it will no longer appear in the list of active workers for the model.
{% endtab %}

{% tab title="🧊Python SDK" %}

```python
# 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)
```

{% endtab %}
{% endtabs %}
