Questions and discussions about using the Shopify CLI and Shopify-built libraries.
I am writing a Shopify plugin with Shopify remix template.
I have a requirement to initialize a queue consumer at the remix app start up. I cannot rely on user sending UI requests to the app. I am not sure where should I add the implementation for initializing the queue consumer? I tried adding my code for consuming queues to shopify.server.ts and entry.server.ts files. But all of them are executed when a UI request is received, not after the server startup. Is there a way that I can achieve this with Shopify remix template application ?