File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,12 +184,12 @@ public final class PostgresJobQueue: JobQueueDriver {
184
184
185
185
/// Retry a job
186
186
/// - Returns: Bool
187
- @discardableResult public func retry( _ id: JobID , buffer: ByteBuffer , options: JobOptions ) async throws -> Bool {
187
+ public func retry< Parameters> ( _ id: JobID , jobRequest: JobRequest < Parameters > , options: JobOptions ) async throws {
188
+ let buffer = try self . jobRegistry. encode ( jobRequest: jobRequest)
188
189
try await self . client. withTransaction ( logger: self . logger) { connection in
189
190
try await self . updateJob ( id: id, buffer: buffer, connection: connection)
190
- try await self . addToQueue ( jobId : id, connection: connection, delayUntil: options. delayUntil)
191
+ try await self . addToQueue ( jobID : id, connection: connection, delayUntil: options. delayUntil)
191
192
}
192
- return true
193
193
}
194
194
195
195
/// This is called to say job has finished processing and it can be deleted
You can’t perform that action at this time.
0 commit comments