Jobs 1.0.0 Beta 3
Pre-release
Pre-release
- 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)