Hi, I want to share a small work in progress libra...
# kotlinx-datetime
k
Hi, I want to share a small work in progress library I've been creating for cron inspired job scheduling built with only kotlinx-datetime and kotlinx-coroutines. It's just reached its first
0.1.0
release. https://github.com/kevincianfarini/cardiologist
💓 4
c
Hey! This looks pretty good. Nice explanation about the goals and non-goals. I think it would be nice to have an integration for CircuitBreaker and Schedule for integrated failure management, what do you think?
k
I don’t use Arrow. Do you mind trying to elaborate how you think circuit breaking and schedule would integrate?
c
It would provide features such as "if the job failed X times, then wait X time before retrying"
k
Since
Pulse.beat
is just a suspending function, does that need to happen in this library? Or can you just wrap calls to
Pulse.beat
with the CircuitBreaker mechanism?
c
Possibly. I'll look into it 🙂
k
Thanks. If it turns out to be involved enough I'd be happy to review a PR, but I'm not totally convinced an Arrow integration should live within this library yet
👍 1