The builder for scheduled functions, which are powered by Google Pub/Sub and Cloud Scheduler. Describes the Cloud Scheduler job that is deployed to trigger a scheduled function at the provided frequency. For more information, see Schedule functions.

Access via functions.pubsub.schedule().

Index

Properties

Private options

Private triggerResource

triggerResource: () => string

Type declaration

    • (): string
    • Returns string

Methods

onRun

  • Event handler for scheduled functions. Triggered whenever the associated scheduler job sends a Pub/Sub message.

    Parameters

    • handler: (context: EventContext) => PromiseLike<any> | any

      Handler that fires whenever the associated scheduler job sends a Pub/Sub message.

    Returns CloudFunction<unknown>

    A Cloud Function that you can export and deploy.

retryConfig

timeZone