---
title: "jobs.kill"
description: "Stops a running async process job."
source: https://liatir.com/plugins/api/jobs/kill
---

# jobs.kill

`Liatir.jobs.kill()` stops a running async process job.

## Signature

### Node

```ts
kill(jobId: string): Promise<boolean>
```


### Python

```python
kill(job_id) -> bool
```


## Parameters

### Node

| Parameter | Type     | Description                    |
|-----------|----------|--------------------------------|
| `jobId`   | `string` | Unique identifier for the job. |

### Python

| Parameter | Type  | Description                    |
|-----------|-------|--------------------------------|
| `job_id`  | `str` | Unique identifier for the job. |

## Example

### Node

```ts
const killed = await Liatir.jobs.kill(jobId);

if (killed) {
  console.log('Job terminated successfully');
}
```


### Python

```python
killed = ctx.liatir.jobs.kill(job_id)

if killed:
    print('Job terminated successfully')
```


## Return value

Returns `true` if the job was successfully killed, `false` otherwise.

## Notes

Use this method with caution.
