Queues facilitate async operations to be performed. They can be used for performing background tasks such as sending a welcome email on register. Each use case will have its own queue class extended fromDocumentation Index
Fetch the complete documentation index at: https://docs.twenty.com/llms.txt
Use this file to discover all available pages before exploring further.
MessageQueueServiceBase.
Currently, we only support bull-mqbull-mq as the queue driver.
Steps to create and use a new queue
- Add a queue name for your new queue under enum
MESSAGE_QUEUES. - Provide the factory implementation of the queue with the queue name as the dependency token.
- Inject the queue that you created in the required module/service with the queue name as the dependency token.
- Add worker class with token based injection just like producer.