As @amrav pointed out in the slack channel, jobs have not been running for a while for updating popular pages and trending pages. On looking at the logs, I found the below interesting message,
time="2020-07-26T01:11:02+05:30" level=info msg="ImportError: No module named oauth2client.service_account" channel=stderr iteration=5 job.command="/root/update_top_trending.sh" job.position=0 job.schedule="11 * * * *"
As can be clearly seen, a python package is amiss. A quick search led me to the solution. Hence, oauth2client was added to the requirements.txt
Testing
I tested the same by opening an interactive shell, installing the dependency, and running the script manually. The script ran perfectly and the main page was updated!
As @amrav pointed out in the slack channel, jobs have not been running for a while for updating popular pages and trending pages. On looking at the logs, I found the below interesting message,
time="2020-07-26T01:11:02+05:30" level=info msg="ImportError: No module named oauth2client.service_account" channel=stderr iteration=5 job.command="/root/update_top_trending.sh" job.position=0 job.schedule="11 * * * *"
As can be clearly seen, a python package is amiss. A quick search led me to the solution. Hence,
oauth2client
was added to the requirements.txtTesting
I tested the same by opening an interactive shell, installing the dependency, and running the script manually. The script ran perfectly and the main page was updated!