2020-07-01 18:44:21 +03:00
|
|
|
.. meta::
|
|
|
|
:description: Create a scheduled trigger with Hasura
|
|
|
|
:keywords: hasura, docs, scheduled trigger
|
|
|
|
|
|
|
|
.. _scheduled_triggers:
|
|
|
|
|
|
|
|
Scheduled Triggers
|
|
|
|
==================
|
|
|
|
|
|
|
|
.. contents:: Table of contents
|
|
|
|
:backlinks: none
|
|
|
|
:depth: 1
|
|
|
|
:local:
|
|
|
|
|
2020-07-31 18:26:55 +03:00
|
|
|
Introduction
|
|
|
|
------------
|
|
|
|
|
|
|
|
Scheduled triggers are used to execute custom business logic at specific points in time.
|
|
|
|
|
2020-08-25 19:21:21 +03:00
|
|
|
.. thumbnail:: /img/graphql/core/scheduled-triggers/scheduled-trigger-arch.png
|
2020-07-31 18:26:55 +03:00
|
|
|
:class: no-shadow
|
|
|
|
:width: 700px
|
|
|
|
:alt: Hasura scheduled trigger architecture
|
2020-07-01 18:44:21 +03:00
|
|
|
|
|
|
|
.. admonition:: Supported from
|
2020-07-31 18:26:55 +03:00
|
|
|
|
2020-07-14 11:45:06 +03:00
|
|
|
Scheduled triggers are supported from versions ``v.1.3.0`` and above.
|
2020-07-01 18:44:21 +03:00
|
|
|
|
2020-07-31 18:26:55 +03:00
|
|
|
Types
|
|
|
|
-----
|
|
|
|
|
|
|
|
There are two types of timed events:
|
|
|
|
|
|
|
|
- :ref:`Cron triggers <creating_cron_trigger>`: based on a cron schedule.
|
|
|
|
- :ref:`One-off scheduled events <creating_one_off_scheduled_event>`: based on a fixed timestamp.
|
2020-07-01 18:44:21 +03:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
:titlesonly:
|
2020-07-31 18:26:55 +03:00
|
|
|
:hidden:
|
2020-07-01 18:44:21 +03:00
|
|
|
|
|
|
|
create-cron-trigger
|
|
|
|
create-one-off-scheduled-event
|