# LifecycleTask

`interface` in `services` · v0.7.1

<https://docs.seedcord.org/packages/services/0.7.1/interfaces/lifecycle-task>

Base interface for a lifecycle task

```ts
interface LifecycleTask
```

## Properties

### name

```ts
name: string;
```

Name of the task

### task

```ts
task: () => Promise<void>;
```

Function to execute the task

### timeout

```ts
timeout: number;
```

Timeout for the task
