Pretty straightforward. I want to programmatically change which scripts run when.
Pretty straightforward. I want to programmatically change which scripts run when.
It would actually be pretty neat to have a series of web service calls for common PythonAnywhere tasks: adding, removing scheduled tasks; checking seconds of processor time or available storage; restarting web applications.
That's an interesting feature request, I'll add it to the tracker...
In the meantime, I wonder if you could achieve what you want with a layer of indirection? If you don't need too much granularity on your tasks, you could set a scheduled task called something generic like "task.py" to run every hour, say, and then you could programatically change the contents of task.py, or make it a symlink that points at different files?
Good call. I'll report back if that causes an unexpected problem.