zynagent-first application framework

Back to the API reference

zyn.RecurringJobRegistration#

/// One compile-time recurring background-job declaration.
pub const RecurringJobRegistration = struct {
    /// Registers a UTC five- or six-field cron schedule for a background job.
    pub fn cron(
        comptime name: []const u8,
        comptime expression: []const u8,
        comptime selected_job: []const u8,
        comptime args: anytype,
    ) RecurringJobRegistration;
};