MCPcopy Create free account
hub / github.com/riverqueue/river / WorkEnd

Method WorkEnd

rivertype/river_type.go:400–400  ·  view source on GitHub ↗

WorkEnd is invoked after a job has been worked with the error result of the worked job. It's invoked after any middleware has already run. WorkEnd may modify a returned work error or pass it through unchanged. Each returned error is passed through to the next hook and the final error result is retu

(ctx context.Context, job *JobRow, err error)

Source from the content-addressed store, hash-verified

398 // WorkBegin doesn't return a context. Middleware should be used for this
399 // sort of shared context instead.
400 WorkEnd(ctx context.Context, job *JobRow, err error) error
401}
402
403// Middleware is an arbitrary interface for a struct which will execute some

Callers 1

executeMethod · 0.65

Implementers 1

testHookWorkEndinternal/hooklookup/hook_lookup_test.g

Calls

no outgoing calls

Tested by

no test coverage detected