Skip to content
Init is coming / May 19 - 23
Back

Function delayed execution does not execute

  • 1
  • Self Hosted
  • Functions
Y
17 May, 2025, 22:53

Hi, I’m having issues with scheduled function executions. Sometimes the delayed function triggers, but a lot of the time it doesn’t. For example the status just changes from “in 6 days” to “8 hours ago” and nothing happens.

Here’s how I’m scheduling:

functions.create_execution(‘67d34ca50006d1f4046d’,json.dumps({‘action’: ‘reminder’, ‘user_id’: user_id}),True,scheduled_at=pendulum.now(“UTC”).add(days=7).start_of(‘minute’).to_iso8601_string())

Anyone else seeing this? Is there a fix or something I should check? Thanks.

TL;DR
Issue: Scheduled function execution not consistently triggering as expected, causing status to change inaccurately. Solution: Double-check the code for scheduling the function and verify if the execution time calculation is correct and in line with the desired functionality. Be mindful of any potential timezone discrepancies.
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