---
title: RELKIT_JOB_LEASE_EXPIRED
description: "Job worker lease expired on the last attempt."
pagination: false
search:
  keywords: [RELKIT_JOB_LEASE_EXPIRED]
sidebar:
  icon: triangle-alert
---

{/* Generated by apps/docs/scripts/generate.ts. Do not edit. */}

**Job worker lease expired on the last attempt.**

## What happened

The worker running the job stopped renewing its lease, for example because the process crashed, and the run had no attempts left under its retry policy.

## What to do

Find out why the worker stopped, raise the task's `retry.maxAttempts` if crashes are expected, and make the task idempotent because an attempt may have partly run.

Reported by `@relkit/postgres`, `relkit/diagnostics`.

See [all error codes](/docs/errors).
