Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ let package = Package(
.library(name: "JobsPostgres", targets: ["JobsPostgres"])
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/swift-jobs.git", from: "1.0.0"),
// MARK: update to a released version before publishing
.package(url: "https://github.com/thoven87/swift-jobs.git", branch: "breaking-changes"),
.package(url: "https://github.com/hummingbird-project/postgres-migrations.git", from: "1.0.0"),
.package(url: "https://github.com/vapor/postgres-nio.git", from: "1.25.0"),
],
Expand Down
7 changes: 7 additions & 0 deletions Sources/JobsPostgres/PostgresJobsQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ public final class PostgresJobQueue: JobQueueDriver, CancellableJobQueue, Resuma
self.priority = .normal
}

/// Initializer for JobOptions
/// - Parameter delayUntil: Whether job execution should be delayed until a later date
public init(delayUntil: Date = .now) {
self.delayUntil = delayUntil
self.priority = .normal
}

/// Initializer for JobOptions
/// - Parameter delayUntil: Whether job execution should be delayed until a later date
/// - Parameter priority: The priority for a job
Expand Down
Loading