Schedule repeat tasks as a cron job #69
-
I see that Oxygen.jl supports tasks that happen at an interval, but is there any way to supply a cron expression to determine the offset timing of the repeat task? I guess I could make a repeat task that fires every minute to check if a task is due in the next interval and wait for that time, I'm just wondering if there is an easier way to do this than building this myself. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi @the-noble-argon , Unfortunately, that exact functionality is not available at the moment but it's definitely a great idea. I don't think there's any CRON.jl package to do this for me, so I'll have to make it myself. Personally, I'd want something similar to the cron expressions you can use in spring boot. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Nice. How are you implementing incremental background tasks currently? Are you making a bunch of async tasks and having them sleep for that interval? The trick for cron expressions is to
|
Beta Was this translation helpful? Give feedback.
-
Hi @the-noble-argon, I just released these changes in v1.1.6, give it a shot and let me know what you think! |
Beta Was this translation helpful? Give feedback.
Hi @the-noble-argon,
I just released these changes in v1.1.6, give it a shot and let me know what you think!