Back

Programmatically schedule a function via function triggered by event?

  • 0
  • Functions
『SixthSense』
4 Nov, 2024, 16:29

I want to schedule a one-off function whenever a document is created in a certain collection. I know I can trigger a function via events. But I don't need to execute immediately after the event is fired. I just want to schedule it so that the execution will be in the future. Let's say I already have function named 'handleCreateEvent' that will be executed when a document is created. From that function execution, can we programmatically schedule another function?

TL;DR
Developers want to trigger a function when a document is created, but not immediately. They want to schedule it for future execution. They already have a 'handleCreateEvent' function. To solve this, you can use tools like Cloud Scheduler or Task Queues to trigger the desired function at a specified time in the future.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more