# StatelessWorkerOptions Properties

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

## IdleWorkersInspectionPeriod {#idleworkersinspectionperiod-600f12b3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.statelessworkeroptions/properties/idleworkersinspectionperiod-600f12b3/)

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

```csharp
public TimeSpan IdleWorkersInspectionPeriod
```

The time to inspect for idle workers.

## MinIdleCyclesBeforeRemoval {#minidlecyclesbeforeremoval-d92b3629}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.statelessworkeroptions/properties/minidlecyclesbeforeremoval-d92b3629/)

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

```csharp
public int MinIdleCyclesBeforeRemoval
```

The minimum, consecutive number of idle cycles any given worker must exhibit before it is deemed enough to remove the worker.

## RemoveIdleWorkers {#removeidleworkers-69e5f8b7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.statelessworkeroptions/properties/removeidleworkers-69e5f8b7/)

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

```csharp
public bool RemoveIdleWorkers
```

When set to `true`, idle workers will be proactively deactivated by the runtime. Otherwise if `false`, than the workers will be deactivated according to [GrainCollectionOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.graincollectionoptions/).
