zibri
    Preparing search index...

    CronJob that cleans up the temp folder of the form data body parser.

    Hierarchy (View Summary)

    • CronJob
      • FormDataBodyParserCleanupCronJob
    Index

    Constructors

    Properties

    initialConfig: InitialCronConfig = ...

    The initial config of the cron job.

    Accessors

    • get active(): boolean

      Whether or not the cron job is currently active.

      Returns boolean

    Methods

    • Changes the cron expression.

      Parameters

      • cronExpression: string

        The new cron expression to change to.

      Returns Promise<void>

    • Runs whenever the execution of the cron job throws an error. This is a wrapper around this.onError that already provides things like disabling the cron job if it's configured that way and logging the error.

      Parameters

      • error: unknown

        The error that was thrown.

      Returns Promise<void>

    • Runs whenever the cron expression fires. This is a wrapper around this.onTick that takes care of validation, error handling and updating cron job data.

      Returns Promise<void>