# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platformdocs.lattica.ai/how-to-guides/resource-management/how-to-stop-worker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
