i18n - docs translations (#17434)
Created by Github action Co-authored-by: github-actions <github-actions@twenty.com>
This commit is contained in:
committed by
GitHub
parent
2353bc62cc
commit
e0d4492013
+10
-10
@@ -1,20 +1,20 @@
|
||||
---
|
||||
title: Message Queue
|
||||
title: Fila de Mensagens
|
||||
---
|
||||
|
||||
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 from `MessageQueueServiceBase`.
|
||||
Filas facilitam operações assíncronas a serem realizadas. Elas podem ser usadas para realizar tarefas em segundo plano, como enviar um email de boas-vindas ao se registrar.
|
||||
Cada caso de uso terá sua própria classe de fila estendida de `MessageQueueServiceBase`.
|
||||
|
||||
Currently, we only support `bull-mq`[bull-mq](https://bullmq.io/) as the queue driver.
|
||||
Atualmente, só damos suporte ao `bull-mq`[bull-mq](https://bullmq.io/) como o driver de fila.
|
||||
|
||||
## Steps to create and use a new queue
|
||||
## Passos para criar e usar uma nova fila
|
||||
|
||||
1. Add a queue name for your new queue under enum `MESSAGE_QUEUES`.
|
||||
2. Provide the factory implementation of the queue with the queue name as the dependency token.
|
||||
3. Inject the queue that you created in the required module/service with the queue name as the dependency token.
|
||||
4. Add worker class with token based injection just like producer.
|
||||
1. Adicione um nome de fila para sua nova fila no enum `MESSAGE_QUEUES`.
|
||||
2. Forneça a implementação da fábrica da fila com o nome da fila como o token de dependência.
|
||||
3. Injete a fila que você criou no módulo/serviço necessário com o nome da fila como o token de dependência.
|
||||
4. Adicione uma classe de trabalhador com injeção baseada em token, assim como o produtor.
|
||||
|
||||
### Example usage
|
||||
### Exemplo de uso
|
||||
|
||||
```ts
|
||||
class Resolver {
|
||||
|
||||
Reference in New Issue
Block a user