Try to access the registry from the celery task.
Use konfig to read the documentation.

And also make the tasks access to the pyramid registry (so that they can access
the backend they need to work)