Skip to content

Change Priority

csharp
public class MyFirstExample : TickerController
{
  [TickerFunction(..., TaskPriority: TickerTaskPriority.High)] 
  public async Task ExampleCronTicker(CancellationToken cancellationToken)
  {
    // Your background job logic goes here...
  }
}

INFO

Default TickerTaskPriority of the attribute is: TickerTaskPriority.Normal

csharp
[TickerFunction(..., TaskPriority: TickerTaskPriority.Normal)]

The list of priorities

csharp
public enum TickerTaskPriority
{
   LongRunning,
   High,
   Normal,
   Low
}