# IDurableTaskManager.GetTask(string)

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

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/IDurableTaskManager.cs)

```csharp
public virtual ScheduledTask GetTask(string rootId)
```

Gets a handle which observes or cancels the existing root task `rootId` of this grain.

### Parameters

- `rootId` (`string`): The root task's identifier, as passed to [TaskId](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.taskid/).

### Returns

A handle for the task, as [IDurableTaskManager](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.idurabletaskmanager/) returns.
