ThomasT
BuildShip2y ago
3 replies
Thomas

Complex workflows -> timeout

I built rather complex buildship flows including website scrapers. Now when calling the api I get a timeout. Is there any best practice for the front end (flutterflow) on how to deal with long response times?
My flow works fine when testing it on Buildship.

I found a possible solution consulting gpt:

1. Frontend Request: Send an API request to start a task.
2. Backend Response: Return 202 Accepted with a task ID and status URL.
3. Backend Processing: Process the task in the background.
4. Result Storage: Store the result in Firebase.
5. Completion Notification: Use one of the methods above to notify the frontend (Polling, Websockets, Webhook).

So I am trying to send a 202 return, but I do not want to stop the workflow.
How do I do that?

Thanks a lot!!!
Was this page helpful?