Back

[SOLVED] How to detect a scheduled function execution?

  • 0
  • Self Hosted
  • Functions
  • Cloud
do9core
13 Oct, 2023, 08:04

I'm working on a cron scheduled function. I suppose to expose two different methods:

  • GET / for the status check
  • POST / for the task

Is there any way to detect whether an execution is scheduled request. Or, is there any way to specify the request arguments for the scheduled execution, Thanks :)

TL;DR
The user wants to know how to detect a scheduled function execution in their cron job. They also want to know if there's a way to specify request arguments for the scheduled execution. The solution is to use two different methods for status check and task, such as `GET /` and `POST /`. They can find more information in the provided document: https://appwrite.io/docs/products/functions/development#headers.
do9core
13 Oct, 2023, 09:13
do9core
13 Oct, 2023, 09:14

[SOLVED] How to detect a scheduled function execution?

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