This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Runs a scheduled job in a background thread using APScheduler and streams | |
| # it's output to a web client using websockets. Communication between the Flask | |
| # thread and APScheduler thread is being done through (blinker) signals. | |
| # | |
| # Install dependencies (preferably in your virtualenv) | |
| # pip install flask apscheduler sqlalchemy blinker flask-socketio simple-websocket | |
| # and then run with: | |
| # python this_script.py | |
| from time import sleep |
OlderNewer