# SchedulingOptions Properties

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

## ActivationSchedulingQuantum {#activationschedulingquantum-cc7e16cc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.schedulingoptions/properties/activationschedulingquantum-cc7e16cc/)

[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).

## DelayWarningThreshold {#delaywarningthreshold-0e9fcf47}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.schedulingoptions/properties/delaywarningthreshold-0e9fcf47/)

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

```csharp
public TimeSpan DelayWarningThreshold
```

Gets or sets the work item queuing delay threshold, at which a warning log message is written. That is, if the delay between enqueuing the work item and executing the work item is greater than DelayWarningThreshold, a warning log is written.

## MaxPendingWorkItemsSoftLimit {#maxpendingworkitemssoftlimit-a7418652}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.schedulingoptions/properties/maxpendingworkitemssoftlimit-a7418652/)

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

```csharp
public int MaxPendingWorkItemsSoftLimit
```

Gets or sets the per work group limit of how many items can be queued up before warnings are generated.

## StoppedActivationWarningInterval {#stoppedactivationwarninginterval-2e6ded7f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.schedulingoptions/properties/stoppedactivationwarninginterval-2e6ded7f/)

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

```csharp
public TimeSpan StoppedActivationWarningInterval
```

Gets or sets the period of time after which to log errors for tasks scheduled to stopped activations.

## TurnWarningLengthThreshold {#turnwarninglengththreshold-5f5e6aad}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.schedulingoptions/properties/turnwarninglengththreshold-5f5e6aad/)

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

```csharp
public TimeSpan TurnWarningLengthThreshold
```

Gets or sets the soft time limit to generate trace warning when the micro-turn executes longer then this period in CPU.
