Automated trigger of custom event

I have a custom-built and hosted API that includes a delay in processing (implemented using celery).

I initially send a POST request from Bubble which immediately returns the celery TaskID. My API can take a few seconds to a minute to process, so I would like Bubble to send a GET request every 2 seconds to see if it’s ready (I have already configured the GET route in Bubble). Currently, I have a scheduled custom event that runs every 60 seconds to ensure the API processing is done. How can I add logic to handle this automatically every 2 seconds until the processing is complete so that shorter tasks don’t need to wait the full 60 seconds?

Don’t poll. Do something else.

1 Like

Any ideas?

Have your custom-built API send a POST request to your Bubble app notifying that it’s done along with the TaskID

1 Like