Forums

Running a function, when web app is closed by user

Hi there,

What I want to do is allow the user to press a HTML button, which triggers a python script that can run, and continue to run until finished even when the user has closed the web app.

Any help would be great! Thank you

You could use an Always-on task feature as suggested here: https://help.pythonanywhere.com/pages/AsyncInWebApps/.