Skip to content

Releases: vapor/queues

Fix typo

23 Jun 21:43
Compare
Choose a tag to compare
0.2.7

fix x

Fix retrying bug

23 Jun 21:32
Compare
Choose a tag to compare

Fixes a bug that prevented retrying jobs

Jobs 1.0.0 Alpha 2

21 Jun 23:46
bb41a64
Compare
Choose a tag to compare
Jobs 1.0.0 Alpha 2 Pre-release
Pre-release

New:

  • New (internal) JobsWorker encapsulation for repeated tasks (#30)
  • QueueService has been renamed to JobsService (#30, #27)
  • QueueName has been renamed to JobsQueue (#30, #27)
  • Some configuration properties have been moved from JobsProvider to JobsConfiguration (#30, #26, #29)

Fixed:

  • New instances of JobsConfiguration are created for each EventLoop. (#30)

Jobs 1.0.0 Alpha 1.2

21 Jun 17:10
b99a22e
Compare
Choose a tag to compare
Jobs 1.0.0 Alpha 1.2 Pre-release
Pre-release

New:

  • JobsProvider now registers all services required to use the package. (#25, #23, #24)

To use Jobs, the following code should now be sufficient:

services.provider(JobsProvider())

services.extend(JobsConfiguration.self) { configuration, container in
    // add jobs to configuration
}

Delay

13 Jun 15:31
4f42614
Compare
Choose a tag to compare
Delay Pre-release
Pre-release

Added a delayUntil property

Jobs 1.0.0 Alpha 1

11 Jun 16:22
ae7094c
Compare
Choose a tag to compare
Jobs 1.0.0 Alpha 1 Pre-release
Pre-release

Fix completed function

12 Mar 21:48
9c58a13
Compare
Choose a tag to compare

Correctly calls the completed function after each job run.

Public property

12 Feb 19:39
fbe1778
Compare
Choose a tag to compare

Makes id public on JobStorage

Update `error` method

06 Feb 17:35
Compare
Choose a tag to compare

Fixed:

  1. Updates the error function to include a data parameter.

Protocol Changes

05 Feb 23:36
Compare
Choose a tag to compare

⚠️ This release includes breaking changes ⚠️

Changed:

  1. The Job protocol is no longer constrained to Codable.
  2. The Job protocol now has a Codable associatedtype
  3. Added a JobData protocol
  4. Renamed JobData -> JobStorage
  5. Updated the JobsPersistenceLayer to pass JobStorage objects rather than strings
  6. Removed Worker parameter requirement from Job protocol. EventLoops can be accessed via context.eventLoop

Upcoming:

  1. 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.
  2. Scheduled jobs