# ISchedulableTask Methods

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

## GetHandle(TaskId) {#gethandle-orleans-durable-tasks-taskid-8d6fd57e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.ischedulabletask/methods/gethandle-orleans-durable-tasks-taskid-8d6fd57e/)

```csharp
public abstract IScheduledTaskHandle GetHandle(TaskId taskId)
```

Gets a handle for a scheduled identifier.

### Parameters

- `taskId` (`TaskId`)

## Post(TaskId) {#post-orleans-durable-tasks-taskid-bd6a8f1d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.ischedulabletask/methods/post-orleans-durable-tasks-taskid-bd6a8f1d/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/ISchedulableTask.cs#L30-L31)

```csharp
public virtual IScheduledTaskHandle Post(TaskId taskId)
```

Stages the start of this definition under `taskId` in the calling code's durable outbox, and returns a handle for the task.

### Parameters

- `taskId` (`TaskId`)

## ScheduleAsync(TaskId, CancellationToken) {#scheduleasync-orleans-durable-tasks-taskid-system-threading-cancellationtoken-91a9e845}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.ischedulabletask/methods/scheduleasync-orleans-durable-tasks-taskid-system-threading-cancellationtoken-91a9e845/)

```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`)
