i18n - translations (#15799)

Created by Github action

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: github-actions <github-actions@twenty.com>
This commit is contained in:
github-actions[bot]
2025-11-13 16:34:00 +01:00
committed by GitHub
parent cd5d0f9eac
commit 8cadd00d34
2720 changed files with 261074 additions and 1179 deletions
@@ -0,0 +1,47 @@
---
title: "Besked K\x0f8"
image: /images/user-guide/emails/emails_header.png
---
<Frame>
<img src="/images/user-guide/emails/emails_header.png" alt="Header" />
</Frame>
Køer muliggør asynkrone operationer. De kan bruges til at udf0F8re baggrundsopgaver, som for eksempel at sende en velkomstmail ved registrering.
Hver anvendelsestilf0E6lde vil have sin egen k0F8klasse, der udvides fra `MessageQueueServiceBase`.
I F8jeblikket st0Ftter vi kun `bull-mq`[bull-mq](https://bullmq.io/) som k0F1F er-driver.
## Trin til at oprette og bruge en ny kø
1. Tilf0Fj et k0FF8navn til din nye k0FF8 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.
### Eksempel p0E5 anvendelse
```ts
class Resolver {
constructor(@Inject(MESSAGE_QUEUES.custom) private queue: MessageQueueService) {}
async onSomeAction() {
//business logic
await this.queue.add(someData);
}
}
//async worker
class CustomWorker {
constructor(@Inject(MESSAGE_QUEUES.custom) private queue: MessageQueueService) {
this.initWorker();
}
async initWorker() {
await this.queue.work(async ({ id, data }) => {
//worker logic
});
}
}
```