> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Drain Requested • AI Agent SDK

> drain_requested: Return whether ``marker`` is a live drain request for this instance.

# drain\_requested

Method

> This is a method of the [**DrainMarkerPolicy**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/DrainMarkerPolicy.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Return whether `marker` is a live drain request for this instance.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def drain_requested(marker: Optional[Dict[str, Any]], current_epoch: str, now: float) -> bool
```

## Parameters

**marker** `Optional` *required*

Parsed marker contents, or `None` when no marker file is present.

**current\_epoch** `str` *required*

The current instantiation epoch (see :func:`current_epoch`).

**now** `float` *required*

A monotonic timestamp (unused by the default policy; accepted so subclasses can implement TTL/debounce without changing the call site).

### Returns

**Returns** `bool`

`True` only for a non-stale, current-epoch drain request that has
not already been handled.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L5668)
>
> `praisonaiagents/gateway/protocols.py` at line 5668


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.