Hello there
I have a dash app running on Google Colab that updates every 15 seconds to download the stock market data and perform automated order execution… It looks like the app sleeps some minutes after I walk away from my laptop, because of which the order execution gets delayed… Any way to not let my dash app sleep when my laptop is inactive?
Thanks
Hello @mlmaster0000,
Did you try giving it coffee? I heard Java is pretty good at that kinda thing.
Anyways, the dash app shouldn’t really be used for this kinda thing, I’d recommend a supervisor process that performs these actions for you. Then use your dash app to monitor and or make adjustments to the mechanism that is performing purchasing.
There are a couple of reasons there could be a delay, if the browser tab is not active, things will kinda just pile up on the react side until your tab becomes active.
Another thing is browsers trying to save you computing power in general… so when you navigate away, sometimes you’ll have to reload the page or it will reload for you. Very frustrating if you use multiple tabs all the time.