Execute Cron tasks on server start #4892
-
Using the javascript |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'm not sure if that is what you are looking for but you can simply call your function manually, eg.: function test() {
console.log(123);
}
test(); // note that the app may not be bootstrapped yet
cronAdd("test", "* * * * *", test) |
Beta Was this translation helpful? Give feedback.
-
Thanks, @ganigeorgiev! I have moved the handlers to a separate file, and then |
Beta Was this translation helpful? Give feedback.
I'm not sure if that is what you are looking for but you can simply call your function manually, eg.: