Skip to content

Jobs 1.0.0 Beta 3

Pre-release
Pre-release
Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 09 Dec 21:37
d0cdfad
  • Updated to latest Vapor beta 2 release (#48)
import Jobs
import Vapor

let email = Email()
app.jobs.add(email)

try app.jobs.use(.redis(url: "redis://\(hostname):6379"))

app.get("send-email") { req in
    req.jobs.dispatch(Email.self, .init(to: "tanner@vapor.codes"))
        .map { HTTPStatus.ok }
}
  • Enabled test discovery on Linux. (#49)