Please note: This article discusses Stitch. Stitch is now MongoDB Realm. All the same features and functionality, now with a new name. Learn more here. We will be updating this article in due course.
Stitch Triggers are powerful tools letting you run functions automatically when some change happens in your database or when a particular authentication event occurs. There is, though, another workflow where you may want to run functions automatically - at particular times of the day and regularly. This workflow applies to, for example, an evening consolidation run, an early morning validation, an afternoon report, or pulling fresh data regularly from an API. Now, a new breed of Stitch Trigger is answering that need. Say hello to the Scheduled Stitch Trigger.
The Scheduled Stitch Trigger can be set to trigger on a flexible interval across minutes, hours, days or weeks. If you have more complex scheduling in mind, there's an advanced option which uses CRON style syntax to give flexible yet precise repetition options.
And if you want to see how quick it is to set a scheduled trigger and function up, check out this video where we do just that:
Enjoy Stitch Scheduled Triggers today!