'thread._local' object has no attribute 'host' when package_show called from celery task
Created by: martinburchell
We worked around this but there might be a way to fix this in the plugin - see https://github.com/ckan/ckan/issues/3145#issuecomment-270678893