]> cat aescling's git repositories - mastodon.git/commit
Improve error handling on LinkCrawlWorker (#5250)
authorunarist <m.unarist@gmail.com>
Fri, 6 Oct 2017 18:39:08 +0000 (03:39 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 6 Oct 2017 18:39:08 +0000 (20:39 +0200)
commit5c8ca024eff76ab10b45df9fd8a95f77ef274d71
tree35233f9e1fbc34cc5d942e93bd341fef631c2d8c
parentd8b2f89d33580045aa3115a86b2a9709760e595a
Improve error handling on LinkCrawlWorker (#5250)

* Improve error handling on LinkCrawlWorker

* Ignore TimeoutError and InvalidURIError too
* Record errors to debug log
* Enable dead job queue on LinkCrawlWorker

Since most of acceptable errors were already ignored, only our side issue should go to dead job queue.

* Ignore all http gem errors
app/services/fetch_link_card_service.rb
app/workers/link_crawl_worker.rb