Shaw
CCConvex Community
•Created by Shaw on 9/8/2024 in #support-community
Programmatically creating cron jobs
I've been attempting to programmatically set up cron jobs for different users with different cron expressions, calling them via actions and mutations but with no luck. It seems scouring other docs and other peoples questions that this isn't currently possible or even considered an anti-pattern. I'm not sure how to implement my use case just using scheduled functions.
My current implementation:
If I need to do this via scheduled functions, not exactly sure where to start. For simple cron expressions it seems doable, but for my complex like:
would be At 10:00 AM, only on Tuesday and Thursday
Not sure how'd I structure scheduled functions to get me the same behavior as a cron. Any advice appreciated! Thank in advanc 🙂
19 replies