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

Instead you strapi instance should accept worker messages