Skip to main content

Cron binding

Type: bindings.cron

Status: stable

Reference: https://docs.dapr.io/reference/components-reference/supported-bindings/cron/

Example​

apiVersion: cra.diagrid.io/v1beta1
kind: Component
metadata:
name: <name>
spec:
type: bindings.cron
version: v1
metadata:
# Indicates the direction of the binding component.
- name: direction
value: "input"
# The cron schedule to use
- name: schedule
value: "@every 15m"
# Specifies a custom route for incoming events. (Optional)
#- name: route
# value: "/custom-path"

Binding information​

Input Binding: yes

Output Binding: no

Metadata​

direction (string)​

Required - Indicates the direction of the binding component.

Example value: input

Allowed values:

  • input

Documentation: https://docs.dapr.io/reference/api/bindings_api/#binding-direction-optional

schedule (string)​

Required - The cron schedule to use

Example value: @every 15m

route (string)​

Specifies a custom route for incoming events.

Example value: /custom-path

Documentation: https://docs.dapr.io/developing-applications/building-blocks/bindings/howto-triggers/#specify-a-custom-route