How do I access the global Strapi instance via a worker file?

I guess the problem here that worker and a strapi instance are on separate threads