@@ -1412,11 +1412,7 @@ func (c *Client[TTx]) JobGetTx(ctx context.Context, tx TTx, id int64) (*rivertyp
14121412// MaxAttempts is also incremented by one if the job has already exhausted its
14131413// max attempts.
14141414func (c * Client [TTx ]) JobRetry (ctx context.Context , id int64 ) (* rivertype.JobRow , error ) {
1415- return c .driver .GetExecutor ().JobRetry (ctx , & riverdriver.JobRetryParams {
1416- ID : id ,
1417- Now : c .baseService .Time .NowUTCOrNil (),
1418- Schema : c .config .Schema ,
1419- })
1415+ return c .jobRetry (ctx , c .driver .GetExecutor (), id )
14201416}
14211417
14221418// JobRetryTx updates the job with the given ID to make it immediately available
@@ -1433,7 +1429,11 @@ func (c *Client[TTx]) JobRetry(ctx context.Context, id int64) (*rivertype.JobRow
14331429// MaxAttempts is also incremented by one if the job has already exhausted its
14341430// max attempts.
14351431func (c * Client [TTx ]) JobRetryTx (ctx context.Context , tx TTx , id int64 ) (* rivertype.JobRow , error ) {
1436- return c .driver .UnwrapExecutor (tx ).JobRetry (ctx , & riverdriver.JobRetryParams {
1432+ return c .jobRetry (ctx , c .driver .UnwrapExecutor (tx ), id )
1433+ }
1434+
1435+ func (c * Client [TTx ]) jobRetry (ctx context.Context , exec riverdriver.Executor , id int64 ) (* rivertype.JobRow , error ) {
1436+ return c .pilot .JobRetry (ctx , exec , & riverdriver.JobRetryParams {
14371437 ID : id ,
14381438 Now : c .baseService .Time .NowUTCOrNil (),
14391439 Schema : c .config .Schema ,
0 commit comments