MCPcopy Index your code
hub / github.com/riverqueue/river / JobUpdateTx

Method JobUpdateTx

client.go:1633–1635  ·  view source on GitHub ↗

JobUpdateTx updates the job with the given ID. If JobUpdateParams.Output is not set, this function may be used inside a job work function to set a job's output based on output recorded so far using RecordOutput. This variant updates the job inside of a transaction.

(ctx context.Context, tx TTx, id int64, params *JobUpdateParams)

Source from the content-addressed store, hash-verified

1631//
1632// This variant updates the job inside of a transaction.
1633func (c *Client[TTx]) JobUpdateTx(ctx context.Context, tx TTx, id int64, params *JobUpdateParams) (*rivertype.JobRow, error) {
1634 return c.jobUpdate(ctx, c.driver.UnwrapExecutor(tx), id, params)
1635}
1636
1637func (c *Client[TTx]) jobUpdate(ctx context.Context, exec riverdriver.Executor, id int64, params *JobUpdateParams) (*rivertype.JobRow, error) {
1638 if params == nil {

Callers 1

Test_Client_JobUpdateTxFunction · 0.80

Calls 2

jobUpdateMethod · 0.95
UnwrapExecutorMethod · 0.65

Tested by 1

Test_Client_JobUpdateTxFunction · 0.64