MCPcopy
hub / github.com/pocketbase/pocketbase / RemoveAll

Method RemoveAll

tools/cron/cron.go:126–131  ·  view source on GitHub ↗

RemoveAll removes all registered cron jobs.

()

Source from the content-addressed store, hash-verified

124
125// RemoveAll removes all registered cron jobs.
126func (c *Cron) RemoveAll() {
127 c.mux.Lock()
128 defer c.mux.Unlock()
129
130 c.jobs = []*Job{}
131}
132
133// Total returns the current total number of registered cron jobs.
134func (c *Cron) Total() int {

Callers 15

TestSkipBootstrapFunction · 0.45
TestMoveDirContentFunction · 0.45
TestCronRemoveAllFunction · 0.45
TestRegistryLoadFilesFunction · 0.45
TestRegistryLoadFSFunction · 0.45
TestFileSystemExistsFunction · 0.45
TestFileSystemAttributesFunction · 0.45
TestFileSystemDeleteFunction · 0.45
TestFileSystemIsEmptyDirFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestSkipBootstrapFunction · 0.36
TestMoveDirContentFunction · 0.36
TestCronRemoveAllFunction · 0.36
TestRegistryLoadFilesFunction · 0.36
TestRegistryLoadFSFunction · 0.36
TestFileSystemExistsFunction · 0.36
TestFileSystemAttributesFunction · 0.36
TestFileSystemDeleteFunction · 0.36
TestFileSystemIsEmptyDirFunction · 0.36