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

Yeah I think in the implementation I showed up above I doubt it’s running on a seperate thread. According to the bullmq docs you can run it on a separate thread if you run from a separate file. I actually don’t need any sort of session context of Strapi in my worker file the only thing I want is to be able to conveniently use the entity service api to interact with my DB as setting up a secure REST endpoint just for the worker seems a bit weird?! But perhaps that’s OK to do? I very new to workers so not sure.