Skip to content

Commit

Permalink
Fix push()
Browse files Browse the repository at this point in the history
  • Loading branch information
m-barthelemy committed Apr 9, 2020
1 parent a6046a8 commit 8dcf822
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/QueuesFluentDriver/JobModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import Fluent
import Queues

enum JobState: String, Codable, CaseIterable {
/// Job created but should NOT be picked up for execution yet
case initial
/// Ready to be oicked up for execution
case pending
case processing
Expand Down Expand Up @@ -51,6 +49,6 @@ class JobModel: Model {
self.id = id
self.key = key
self.data = try! JSONEncoder().encode(data)
self.state = .initial
self.state = .pending
}
}

0 comments on commit 8dcf822

Please sign in to comment.