Table of Contents

Class RecurringJobRecord

Namespace
Millrace.Storage
Assembly
Millrace.dll

A recurring (cron) job definition. Firing is fenced by compare-and-set on NextFireTime with the fired job inserted in the same atomic operation, giving exactly-once enqueue per occurrence (see TryFireRecurringAsync(string, DateTimeOffset, DateTimeOffset, JobRecord, CancellationToken)).

public sealed record RecurringJobRecord : IEquatable<RecurringJobRecord>
Inheritance
RecurringJobRecord
Implements
Inherited Members

Properties

CreatedAt

When the definition was first registered; preserved across upserts.

Cron

Five-field cron expression, UTC (see Millrace.Scheduling.CronExpression).

Id

Consumer-chosen identity; upserts with the same id update the definition.

Invocation

What each occurrence runs.

LastFireTime

The occurrence most recently fired.

NextFireTime

When the next occurrence is due.

Priority

Copied onto every fired job.

Queue

Queue that fired occurrences are enqueued to.

Retry

Retry policy copied onto every fired occurrence.

TenantId

Owning tenant, copied onto every fired occurrence.

UpdatedAt

When the definition was last upserted.