Swiftpack.co - Package - vapor/jobs

Github

link
Stars: 52
Help us keep the lights on

Dependencies

Releases

0.2.7 - Jun 23, 2019

0.2.6 - Jun 23, 2019

Fixes a bug that prevented retrying jobs

1.0.0-alpha.2.1 - Jun 23, 2019

Fixes a bug found by @saicu that prevented jobs from re-running upon error

1.0.0-alpha.2 - Jun 21, 2019

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)

1.0.0-alpha.1.2 - Jun 21, 2019

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
}