title: How to update a plotly dash app with new data from a database
body: <p>I have a Flask app (Plotly Dash) that fetches data from a DB which gets updated every day. Deployed on AWS, I run the app with gunicorn/nginx. Problem is, the data used in the app are from the latest gunicorn run, not the latest in the DB. </p>
  
  <p>A solution I thought is adding an attribute to gunicorn command (eg. --reload) with a timer, to auto-restart gunicorn daily. Is this possible, or even, are there any other workarounds?</p>
  
  <p><strong>SOLUTION</strong> : <a href="https://community.plot.ly/t/how-to-refresh-data-on-fly/13069" rel="nofollow noreferrer">https://community.plot.ly/t/how-to-refresh-data-on-fly/13069</a></p>