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

Method InsertBegin

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

InsertBegin is invoked just before a job is inserted to the database.

(ctx context.Context, params *JobInsertParams)

Source from the content-addressed store, hash-verified

321
322 // InsertBegin is invoked just before a job is inserted to the database.
323 InsertBegin(ctx context.Context, params *JobInsertParams) error
324}
325
326// HookPeriodicJobsStart is an interface to a hook that runs when the periodic

Callers 1

insertManySharedMethod · 0.65

Implementers 6

JobWithHooksBothInsertAndWorkBeginHookexample_job_args_hooks_test.go
JobWithHooksInsertBeginHookexample_job_args_hooks_test.go
BothInsertAndWorkBeginHookexample_global_hooks_test.go
InsertBeginHookexample_global_hooks_test.go
testHookInsertAndWorkBegininternal/hooklookup/hook_lookup_test.g
testHookInsertBegininternal/hooklookup/hook_lookup_test.g

Calls

no outgoing calls

Tested by

no test coverage detected