Protocol Changes
Changed:
- The
Job
protocol is no longer constrained toCodable
. - The
Job
protocol now has aCodable
associatedtype - Added a
JobData
protocol - Renamed
JobData
->JobStorage
- Updated the
JobsPersistenceLayer
to passJobStorage
objects rather than strings - Removed
Worker
parameter requirement fromJob
protocol.EventLoop
s can be accessed viacontext.eventLoop
Upcoming:
- Reliable queue worker:
vapor run jobs --reliable
will run a single worker that will move stale jobs from the processing queue back to the upcoming queue. - Scheduled jobs