vapor / queues

A queue system for Vapor.
MIT License
169 stars 41 forks source link

In Process Jobs... start Scheduled with no ScheduledJobs #55

Closed khoogheem closed 4 years ago

khoogheem commented 4 years ago

If I use the example app.. or my own and try the command: try JobsCommand(application: app, scheduled: true).startScheduledJobs()

It produces the error Assertion failed: JobsCommand did not shutdown before deinit: file If there is no call to: app.jobs.schedule prior to calling the . startScheduledJobs()

I get why that is.. but I wonder if there is a better way to handle this.. such as a precondition to give a warning that no jobs of type ScheduledJob have been put onto the schedule

jdmcd commented 4 years ago

Fixed via #57 thank you!