interface MeshCallCronParams {
    args: any[];
    callback?: ((...args: any[]) => any);
    guid?: string;
    logLevel?: LogLevel;
    namespace?: string;
    options: MeshCallCronOptions;
    redis: RedisConfig;
    topic: string;
}

Properties

args: any[]

Arguments to pass to the cron job; arguments will be passed to the callback each time it runs

callback?: ((...args: any[]) => any)

linked worker function to run; if not provided, the system will attempt to start the cron job using the topic, but a new worker will not be created. This is useful for spawning a cron job from an ephemeral node process.

guid?: string

Idempotent GUID for the worker and engine used for the cron

logLevel?: LogLevel

Log level for the cron

namespace?: string

Namespace for grouping common cron functions. The cron job keys in Redis will be prefixed with this namespace. (e.g. hmsh:[namespace]:j:*)

Options for the cron job

Redis configuration for the cron job

topic: string

Unique topic for the cron function to identify the worker