Releases: vapor/queues
Releases · vapor/queues
Fix typo
Fix retrying bug
Fixes a bug that prevented retrying jobs
Jobs 1.0.0 Alpha 2
New:
- New (internal)
JobsWorker
encapsulation for repeated tasks (#30) QueueService
has been renamed toJobsService
(#30, #27)QueueName
has been renamed toJobsQueue
(#30, #27)- Some configuration properties have been moved from
JobsProvider
toJobsConfiguration
(#30, #26, #29)
Fixed:
- New instances of
JobsConfiguration
are created for each EventLoop. (#30)
Jobs 1.0.0 Alpha 1.2
Delay
Added a delayUntil
property
Jobs 1.0.0 Alpha 1
More information on Vapor 4 alpha releases:
https://medium.com/@codevapor/vapor-4-alpha-1-releases-begin-94a4bc79dd9a
API Docs:
Fix completed function
Correctly calls the completed function after each job run.
Public property
Makes id
public on JobStorage
Update `error` method
Fixed:
- Updates the
error
function to include adata
parameter.
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