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