Attribute Macro cron_event_handler

Source
#[cron_event_handler]
Expand description

Proc macro which is set on a function that need to be called on Redis cron. The function must accept a [Context] and u64 that represent the cron hz.

Example:

#[cron_event_handler]
fn cron_event_handler(ctx: &Context, hz: u64) { ... }