MCPcopy
hub / github.com/thinkjs/thinkjs / loadCrontab

Method loadCrontab

lib/loader.js:83–87  ·  view source on GitHub ↗

* load crontab

()

Source from the content-addressed store, hash-verified

81 * load crontab
82 */
83 loadCrontab() {
84 const crontab = think.loader.loadCrontab();
85 const instance = new Crontab(crontab, think.app);
86 instance.runTask();
87 }
88 /**
89 * write config to file
90 * @param {Config} config

Callers 1

loadAllMethod · 0.80

Calls 1

runTaskMethod · 0.95

Tested by

no test coverage detected