Coldbox scheduler question. The docs state `Module...
# box-products
r
Coldbox scheduler question. The docs state
Modules can easily tie in to ColdBox's async scheduling engine by defining a config/Scheduler.cfc file.
but calling
getInstance("appScheduler@coldbox").getTasks()
does not list an tasks defined in a module. Do i have to access the module's scheduler in some way to see what task each module has registered?
b
Yes, that getinstance will get the app scheduler
Try asking for
Copy code
cbScheduler@moduleName
That Should give you the scheduler for that module
@Ryan Albrecht
r
@bdw429s mucho gracias
👍 1
Thats exactly what i was looking for
👍👍
b
I answered it by looking at the source real quick, but FWIW, it's also in the docs here too https://coldbox.ortusbooks.com/digging-deeper/scheduled-tasks#schedulers-for-modules
r
duhh, I must have missed that in my haste. Thanks