Open henare opened 7 years ago
This has only started to happen recently. @auxesis do you have any clues about what might have changed that would cause this?
Things I can think that are different now:
rescue
may be getting called more often now because the image isn't cachedWhatever's happening, I'm pretty sure this is a legitimate bug in the code.
I bet it's a race condition. This code was only ever intended to run once when you first set up morph and forget to run update_docker_image
.
However the actual problem here is that...
The Docker image cache has been wiped
...should not wipe this image. If this is the case it means the image is being re-downloaded every hour. Not only does this take unnecessary bandwidth but blowing this much of the cache away will make scraper runs very slow.
If you don't have a cached container to use it could mean you have to wait for this container to download, your scraper language to be downloaded and compiled, and your libraries downloaded and installed. This could easily take several minutes. If this reset is happening every hour it would be very frustrating for people running scrapers.
@auxesis have I understood this correctly? Do we think it's having this impact?
Backtrace
View full backtrace and more info at honeybadger.io