Back

Problems scheduling function execution from other function

  • 0
  • Self Hosted
  • Functions
Iron
30 Jan, 2025, 11:54

I am trying to schedule a function execution from a different function. The following is my code that is supposed to schedule the function call.

TypeScript
final scheduleTime = DateTime.now().add(Duration(seconds: 30));
functions.createExecution(
      functionId: functionId,
      body: token,
      xasync: true,
      scheduledAt: scheduleTime.toUtc().toIso8601String(),
);

My appwrite self-hosted version is 1.6.0 My dart_appwrite version is 13.0.0 The problem is that the function does not get executed, it does not appear in any shape or form in the web control panel. If I remove xasync: true and scheduledAt it gets correctly executed immediately. What could be the problem?

TL;DR
Issue: Function does not get executed when scheduled with Dart using xasync and scheduledAt. Solution: The problem might be related to the version of Appwrite. Try updating your Appwrite self-hosted version to at least 1.8.0 and test the scheduled function again.
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