Closed fmorency closed 2 years ago
Hi @fmorency Thanks for the report. I'll check into it
yeah this is hitting me as well
I ran into this also. The shutdown mechanism seems to block (in my debugging, it seemed to be related to not properly starting all its tokio tasks). I fixed it on my fork by simplifying the shutdown method and making it async, but I imagine that doesn't meet the design you're going for:
https://github.com/tuck182/tokio-cron-scheduler/commit/10ac05fe7e6515a782ba74aac438c10de25f8e4a
Hey @tuck182 that'll work, please open a PR?
So, could this be fixed?
I've been meaning to create a PR; I'll do that this weekend
Hi
tokio-cron-schedule
team! Thanks a lot for making this crate!I am currently trying to handle a graceful shutdown of my application, but I'm having a hard time making it work properly.
The following application never stops, even after catching the Ctrl-C, unless I uncomment the
std::process::exit()
line. I don't understand why.Thanks!