Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class QuartzService {
@Autowired protected GrailsApplication grailsApplication
@Autowired protected Scheduler quartzScheduler
@Autowired protected SessionBinderJobListener sessionBinderJobListener
@Autowired(required=false) protected SchwartzJob[] jobs

/**
* Called from doWithApplicationContext() to do startup initialization tasks;
Expand Down Expand Up @@ -160,6 +159,7 @@ class QuartzService {
* @throws SchedulerException
*/
void scheduleJobs() throws SchedulerException {
Collection<SchwartzJob> jobs = grailsApplication.mainContext.getBeansOfType(SchwartzJob).values()
for (SchwartzJob job in jobs) {
scheduleJob job
}
Expand Down