Question:
I’m running a flask server along a daily function in the workspace and all works fine. In Deployment it starts the flask server but don’t execute the daily function.
Repl link/Link to where the bug appears:
https://replit.com/@MessiasDidimo/omahav02#main.py
Screenshots, links, or other helpful context:
def run_server():
app.run(host='0.0.0.0', port=8080)
if __name__ == '__main__':
thread = Thread(target=run_at_specific_time, daemon=True)
thread.start() # Start the run_at_specific_time function in a separate thread
run_server() # Run Flask server in the main thread