2021-08-24 04:51:53 +00:00
|
|
|
import {CanonicalStatic} from './CanonicalStatic'
|
2022-01-27 01:37:54 +00:00
|
|
|
import {Singleton, Instantiable} from '../di'
|
|
|
|
|
import {Queueable} from '../support/bus'
|
2021-08-24 04:51:53 +00:00
|
|
|
|
|
|
|
|
/**
|
2022-01-27 16:34:01 +00:00
|
|
|
* A canonical unit that resolves Queueable classes from `app/jobs` and sets up
|
|
|
|
|
* any non-default queues.
|
2021-08-24 04:51:53 +00:00
|
|
|
*/
|
|
|
|
|
@Singleton()
|
2022-01-27 01:37:54 +00:00
|
|
|
export class Queueables extends CanonicalStatic<Queueables, Instantiable<Queueable>> {
|
2022-01-20 06:55:21 +00:00
|
|
|
protected appPath = ['jobs']
|
2021-08-24 04:51:53 +00:00
|
|
|
|
|
|
|
|
protected canonicalItem = 'job'
|
|
|
|
|
|
2022-07-09 01:27:18 +00:00
|
|
|
protected suffix = '.job'
|
2021-08-24 04:51:53 +00:00
|
|
|
}
|