@@ -1356,6 +1356,7 @@ func (c *Client[TTx]) jobCancel(ctx context.Context, exec riverdriver.Executor,
1356
1356
ID : jobID ,
1357
1357
CancelAttemptedAt : c .baseService .Time .NowUTC (),
1358
1358
ControlTopic : string (notifier .NotificationTopicControl ),
1359
+ Now : c .baseService .Time .NowUTCOrNil (),
1359
1360
Schema : c .config .Schema ,
1360
1361
})
1361
1362
}
@@ -1413,6 +1414,7 @@ func (c *Client[TTx]) JobGetTx(ctx context.Context, tx TTx, id int64) (*rivertyp
1413
1414
func (c * Client [TTx ]) JobRetry (ctx context.Context , id int64 ) (* rivertype.JobRow , error ) {
1414
1415
return c .driver .GetExecutor ().JobRetry (ctx , & riverdriver.JobRetryParams {
1415
1416
ID : id ,
1417
+ Now : c .baseService .Time .NowUTCOrNil (),
1416
1418
Schema : c .config .Schema ,
1417
1419
})
1418
1420
}
@@ -1433,6 +1435,7 @@ func (c *Client[TTx]) JobRetry(ctx context.Context, id int64) (*rivertype.JobRow
1433
1435
func (c * Client [TTx ]) JobRetryTx (ctx context.Context , tx TTx , id int64 ) (* rivertype.JobRow , error ) {
1434
1436
return c .driver .UnwrapExecutor (tx ).JobRetry (ctx , & riverdriver.JobRetryParams {
1435
1437
ID : id ,
1438
+ Now : c .baseService .Time .NowUTCOrNil (),
1436
1439
Schema : c .config .Schema ,
1437
1440
})
1438
1441
}
@@ -2269,6 +2272,7 @@ func (c *Client[TTx]) QueuePause(ctx context.Context, name string, opts *QueuePa
2269
2272
2270
2273
if err := tx .QueuePause (ctx , & riverdriver.QueuePauseParams {
2271
2274
Name : name ,
2275
+ Now : c .baseService .Time .NowUTCOrNil (),
2272
2276
Schema : c .config .Schema ,
2273
2277
}); err != nil {
2274
2278
return err
@@ -2304,6 +2308,7 @@ func (c *Client[TTx]) QueuePauseTx(ctx context.Context, tx TTx, name string, opt
2304
2308
2305
2309
if err := executorTx .QueuePause (ctx , & riverdriver.QueuePauseParams {
2306
2310
Name : name ,
2311
+ Now : c .baseService .Time .NowUTCOrNil (),
2307
2312
Schema : c .config .Schema ,
2308
2313
}); err != nil {
2309
2314
return err
@@ -2337,6 +2342,7 @@ func (c *Client[TTx]) QueueResume(ctx context.Context, name string, opts *QueueP
2337
2342
2338
2343
if err := tx .QueueResume (ctx , & riverdriver.QueueResumeParams {
2339
2344
Name : name ,
2345
+ Now : c .baseService .Time .NowUTCOrNil (),
2340
2346
Schema : c .config .Schema ,
2341
2347
}); err != nil {
2342
2348
return err
@@ -2373,6 +2379,7 @@ func (c *Client[TTx]) QueueResumeTx(ctx context.Context, tx TTx, name string, op
2373
2379
2374
2380
if err := executorTx .QueueResume (ctx , & riverdriver.QueueResumeParams {
2375
2381
Name : name ,
2382
+ Now : c .baseService .Time .NowUTCOrNil (),
2376
2383
Schema : c .config .Schema ,
2377
2384
}); err != nil {
2378
2385
return err
0 commit comments