Forums

Run a script with a delayed scheduled task

Hi, is it possibile to run a script with a start and an end date included within the code? Is it necessary to keep the web browser open with the console or can run in the background with my laptop off?

Just to explain I'm trying to run a script with a code which starts after few hours and then stops after n reiterations.

Thanks,

M

You can't rely on consoles as consoles are ephemeral by design and get restarted when we do maintenance. You should use Scheduled tasks - see the "Tasks" page on the PythonAnywhere dashboard.