Location: PyCon, Cleveland, OH, USA
Date: May 4, 2019, 1:00pm
# NOTE: This requires threading support in your WSGI server. | |
# For uWSGI: https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html#a-note-on-python-threads | |
import threading | |
# Long running task. | |
def run_thing(myuser): | |
... | |
# email user when done | |
return |