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
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)woah. i totally missed that. thought i'm passing different params so might work. thanks alot. it works fine!