Skip to content

RecurringJobInfo ​

One discovered recurring job, as its attribute and any matching configuration override resolve together. Only the job id always comes from the attribute. Exposed through RecurringJobRegistry so an application can list what is scheduled.

Fields

JobId: string
Identifier the job is registered under, taken from its RecurringJobAttribute and unique across the application.

CronExpression: string
The schedule, validated when the host starts rather than on first run.

JobType: Type
The discovered IRecurringJob implementation, resolved from a fresh scope on every run.

TimeZone: string?
Time zone identifier the schedule is evaluated in. Null means UTC.

Queue: string?
Hangfire queue the job is enqueued on. Null means the default queue.

Type signature ​

csharp
public sealed record RecurringJobInfo
{
    public required string JobId { get; init; }
    public required string CronExpression { get; init; }
    public required Type JobType { get; init; }
    public required string? TimeZone { get; init; }
    public required string? Queue { get; init; }
}

All packages are released under the MIT License.