A Request to the PythonAnywhere team.
Is there a good technical reason why an existing console can't auto restart when we do an API interaction ?
I have two consoles on my account (one for each webapp), and i am using the API to interact with them, having first opened them through the browsers.
After 24 hours or so of no interaction the consoles seem to time out (I get that this might be neccessary - in order to save resources, no point having processes being idle on the server), but after this timeout, any further interaction with those consoles vie the API results in an error:
code: 412 text: Console not yet started. Please load it (or its iframe) in a browser first
Is there any way of having consoles be auto-revived by an API interaction ? Could a flag be kept on each console once it is opened by the browser, such that a new API request on that console, restarts the process if it is down.
NOTE : I am not asking for a 'POST' to /api/v0/user/{username}/consoles/
to create a new process - I understand why that might be restricted. I am talking about an API interaction on an existing console which has already been opened via the browser.