Hmza
Hmza4mo ago

can't do 2 crons in file ?

I can't do two same crons in one crons.ts ? params are different but i want to run two crons with different params.
2 Replies
sshader
sshader4mo ago
I think they need to have different names but can be the same function? e.g. crons.interval("do thing A", { hours: 3 }, internal.foo.bar, { baz: "a" }) + crons.interval("do thing B", { hours: 3 }, internal.foo.bar, { baz: "b" }) (but let us know if that's not the case)
Hmza
HmzaOP4mo ago
woah. i totally missed that. thought i'm passing different params so might work. thanks alot. it works fine!

Did you find this page helpful?