Method UpsertRecurringAsync
- Namespace
- Millrace.Storage.PostgreSql
- Assembly
- Millrace.Storage.PostgreSql.dll
UpsertRecurringAsync(RecurringJobRecord, CancellationToken)
Single atomic upsert. Insert stores the record as given. Update overwrites Cron/Queue/Invocation/Retry/Priority/TenantId/UpdatedAt; takes NextFireTime from the record iff the stored Cron differs from the record's (else preserves the stored value — the engine always passes a freshly computed NextFireTime, conditionally unused); always preserves LastFireTime/CreatedAt.
public ValueTask UpsertRecurringAsync(RecurringJobRecord record, CancellationToken ct)
Parameters
recordRecurringJobRecordctCancellationToken