Forums

pythonanywhere no longer seems to be able to run my scripts since the last maintenance

Since the maintenance that took place today, I no longer seem to be able to run my crawler. when I restart my always on task the logs are no longer done in the correct order and are extremely slow. When I try to run my scripts manually with a bash console I see my startup logs in the right order and then nothing. Even after waiting several hours nothing seems to move even though normally I should have logs telling me that data has been added to my database.

I tried to modify my code to have more logs. For example, before I only displayed a log when 5000 data had been updated or added and now I should have a log every 10 but even after several hours whether with the bash console or with always on task, nothing happens.

Additionally after the maintenance, I had this log displayed: Error connecting to MySQL: 2005 (HY000): Unknown MySQL server host 'my-database-host-address' (-3)

whereas before maintenance this had not yet happened to me and when I tried to restart the task but logs were not given as mentioned above

Always on tasks took some time to recover after the downtime. Both of your tasks appear to be stopped now. If you restart them, they should be fine.