[**zonegaze-flow**](../../../../README.md)

***

[zonegaze-flow](../../../../README.md) / [flow/contracts/src](../README.md) / archiveTask

# Function: archiveTask()

> **archiveTask**(`board`, `taskId`, `input`, `now?`): [`RuntimeMoveTaskResult`](../interfaces/RuntimeMoveTaskResult.md)

Defined in: [flow/product/src/kanban-adapter/task-board-mutations.ts:870](https://github.com/neuralpilot08/zonegaze-flow/blob/ee47e8308e50071e712017a7f8b0db560a4746ee/flow/product/src/kanban-adapter/task-board-mutations.ts#L870)

Moves a task to Archive and writes durable archive metadata for later auditing.

## Parameters

### board

#### columns

`object`[] = `...`

#### dependencies

`object`[] = `...`

#### workTypeRegistry

`RuntimeWorkTypeRegistry` = `runtimeWorkTypeRegistrySchema`

### taskId

`string`

### input

[`RuntimeArchiveTaskInput`](../interfaces/RuntimeArchiveTaskInput.md)

### now?

`number` = `...`

## Returns

[`RuntimeMoveTaskResult`](../interfaces/RuntimeMoveTaskResult.md)
