@squidcloud/backend
    Preparing search index...

    Interface SchedulerOptions

    Options for the @scheduler annotation.

    interface SchedulerOptions {
        cron:
            | `${string} ${string} ${string} ${string} ${string}`
            | `${string} ${string} ${string} ${string}`;
        exclusive?: boolean;
        id?: string;
    }
    Index

    Properties

    Properties

    cron:
        | `${string} ${string} ${string} ${string} ${string}`
        | `${string} ${string} ${string} ${string}`

    The cron expression (in UTC) to schedule the function on.

    exclusive?: boolean

    Whether the scheduler should be exclusive. If set to true, the scheduler will not trigger if the previous scheduler is still running. Default: true.

    id?: string

    The ID of the scheduler. Must be unique. If not provided the ID of the scheduler is constructed as 'ClassName:FunctionName'.