# SchedulingOptions.ActivationSchedulingQuantum

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.schedulingoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.schedulingoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Configuration/Options/SchedulingOptions.cs)

```csharp
public TimeSpan ActivationSchedulingQuantum
```

Gets or sets the soft time limit on the duration of activation macro-turn (a number of micro-turns). If an activation was running its micro-turns longer than this, we will give up the thread. If this is set to zero or a negative number, then the full work queue is drained (MaxWorkItemsPerTurn allowing).
