Skip to content
Back

The function became slower after being executed asynchronously.

  • 0
  • Functions
cy
14 Jul, 2025, 03:07

I used the Python SDK and set xasync=True in create_execution, expecting it to execute quickly on another worker. However, the execution ended up taking several seconds to complete, whereas synchronous execution only takes milliseconds. From get_execution, I can also see that the duration between createdAt and updatedAt itself took several seconds.

How should this issue be understood, and what modifications are needed to achieve the intended logic?

TL;DR
The function runs slower when executed asynchronously compared to synchronously, even with more workers. The developer used the Python SDK with `xasync=True` in `create_execution`. To resolve the issue, they need to understand why the execution is taking longer, modify the logic accordingly, and ensure proper synchronization between `createdAt` and `updatedAt` timestamps.
cy
14 Jul, 2025, 03:08

@Steven

cy
14 Jul, 2025, 03:10

I’m already a Pro user, so I should be able to use more workers.

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