TickerQTickerQ

Context

TickerFunctionContext and CronOccurrenceOperations.

TickerFunctionContext

Injected into every ticker function at execution time.

Properties

PropertyTypeDescription
IdGuidUnique identifier of the ticker instance.
TypeTickerTypeWhether this is a TimeTicker or CronTickerOccurrence.
RetryCountintCurrent retry attempt number.
IsDueboolWhether the ticker was already past its scheduled time when it began executing.
ScheduledForDateTimeUTC intended fire time.
FunctionNamestringName of the ticker function being executed.
CronOccurrenceOperationsCronOccurrenceOperationsOperations available for cron occurrences.

Methods

void RequestCancellation();

Requests cancellation of the current execution.


TickerFunctionContext<TRequest>

Extends TickerFunctionContext with a typed request payload.

PropertyTypeDescription
RequestTRequestThe deserialized request object. Readonly.

CronOccurrenceOperations

Methods

void SkipIfAlreadyRunning();

Skips the current cron occurrence if another occurrence of the same cron job is already running. Sets the occurrence status to Skipped.

On this page