> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# SchedulerLease

> Type alias exported by @botmesh/core.

```ts theme={null}
type SchedulerLease = 
  | LeaseProvider
| Pick<Coordinator, "tryLead">;
```

Defined in: [coordination/lease.ts:20](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/lease.ts#L20)

Leadership backend of the persistent scheduler: a fenced [LeaseProvider](https://botmesh.afaya.com.co/api/core/interfaces/LeaseProvider.md), or a
multi-replica [Coordinator](https://botmesh.afaya.com.co/api/core/interfaces/Coordinator.md) (only its `tryLead` is used).


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