MCPcopy
hub / github.com/pocketbase/pocketbase / Run

Method Run

tools/cron/job.go:23–27  ·  view source on GitHub ↗

Run runs the cron job function.

()

Source from the content-addressed store, hash-verified

21
22// Run runs the cron job function.
23func (j *Job) Run() {
24 if j.fn != nil {
25 j.fn()
26 }
27}
28
29// MarshalJSON implements [json.Marshaler] and export the current
30// jobs data into valid JSON.

Callers 15

TestJobRunFunction · 0.95
cronRunFunction · 0.95
TestSingularizeFunction · 0.45
TestUcFirstFunction · 0.45
TestColumnifyFunction · 0.45
TestSentenizeFunction · 0.45
TestSanitizeFunction · 0.45
TestSnakecaseFunction · 0.45
TestCamelizeFunction · 0.45
sendMethod · 0.45
TestAddressesToStringsFunction · 0.45
TestLoginAuthStartFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestJobRunFunction · 0.76
TestSingularizeFunction · 0.36
TestUcFirstFunction · 0.36
TestColumnifyFunction · 0.36
TestSentenizeFunction · 0.36
TestSanitizeFunction · 0.36
TestSnakecaseFunction · 0.36
TestCamelizeFunction · 0.36
TestAddressesToStringsFunction · 0.36
TestLoginAuthStartFunction · 0.36
TestJSONArrayMarshalJSONFunction · 0.36
TestJSONArrayStringFunction · 0.36