Feature request: status updates from callbacks

We love the Loading component/animation which shows a callback in progress. However, for many multistep/long processes, a progress bar is more suitable. Of course, there’s the redis and celery options to monitor background tasks, but for simple callbacks that take a couple minutes, it would be super nice to be able to easily update the user without a lot of back-end architecture. We don’t want to violate the “one in, one out” philosophy of callbacks, but would be cool if there was a component that could get status updates signals from a callback.

I’ve created chained callbacks to do the same thing, but it’s so much added complexity for what could be a simple feature.

Hello @titanup,

You can use the set_progress to stream steps as they happen in your app. :slight_smile:

This is available in the background callbacks. Outside of that, regular updates are subject to ~30 seconds for the server to respond otherwise it fails.

2 Likes