# ISchedulableTask.ScheduleAsync(TaskId, CancellationToken)

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

```csharp
public abstract ValueTask<DurableTaskResponse> ScheduleAsync(TaskId taskId, CancellationToken cancellationToken)
```

Schedules or reattaches to this definition under `taskId`, and completes once the task's host has accepted and durably stored the task.

### Parameters

- `taskId` (`TaskId`)
- `cancellationToken` (`CancellationToken`)
