You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatemailer:MailerService, // Injected by IoC container
425
417
privatelogger:Logger// Injected by IoC container
@@ -540,10 +532,11 @@ const config = {
540
532
Jobs must:
541
533
542
534
- Extend the `Job` class
543
-
- Have a static `jobName` property
544
535
- Implement the `execute` method
545
536
- Be exported as default
546
537
538
+
The job name is automatically derived from the class name, or can be explicitly set via `static options = { name: 'CustomName' }`.
539
+
547
540
## Logging
548
541
549
542
You can pass a logger to the queue manager for debugging or monitoring. The logger must be compatible with the [pino](https://github.com/pinojs/pino) interface.
0 commit comments