# DurableTaskContext.StartTaskAsync(TaskId, DurableTask, DurableTaskStartOptions, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskcontext/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskcontext/methods/)

```csharp
protected internal abstract ValueTask<IScheduledTaskHandle> StartTaskAsync(TaskId taskId, DurableTask taskDefinition, DurableTaskStartOptions options, CancellationToken cancellationToken)
```

Starts, or reattaches to, `taskDefinition` under `taskId`, and records the start in this execution.

### Parameters

- `taskId` (`TaskId`): A child of [DurableTaskContext](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskcontext/) for an attached task, or the root identifier of a [DurableTaskStartOptions](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskstartoptions/) task.
- `taskDefinition` (`DurableTask`): The definition to start.
- `options` (`DurableTaskStartOptions`): How the task relates to this execution, and when the start completes.
- `cancellationToken` (`CancellationToken`): A token which abandons the start. It doesn't cancel the task.

### Returns

A handle through which this execution observes the task.
