-
-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Labels
Description
I would like to know if it is possible to create a job as a class. For instance, would something like this be possible?
class SendNotificationMails extends someBaseJobClass {
constructor() {
this.attach("notification-mails", /*... other settings */)
}
async run() {
// Execute job...
}
}It would make organizing a lot of background jobs much easier to write everything in classes and just have them register at an initial script.