Open kaspar-p opened 8 months ago
version 0.9.4 tokio version 1.35.1
Just had this happen as well. Been running fine for a week then suddenly today I get this in my logs. I have error reporting for my own things and had nothing show up there.
its being reported here, line 96: https://github.com/mvniekerk/tokio-cron-scheduler/blob/da2e31087603661e6b4a7679cb4cde72e0ae130e/src/job/creator.rs#L94-L104
From what I can gather, tokio has three errors with this name:
seems to have something to do with channels?
I use this library to run a twitter bot, but I must have changed something, and lately every time the cron job actually starts, it stops immediately with a generic error:
and I'm not sure how to debug. I've put the contents of the job into a
cron_tweet()
fn, and doing something like:has the error, but just:
works fine.
The start of my
cron_tweet()
function is:where the
dao
is a database connection. And I actually see theStarting cron...
logs:but then immediately the error. The manual way (no scheduler, just calling
cron_tweet().await
directly, has all the right logging).What could RecvError() come from? Why does this happen? It doesn't seem like a bad connection to the DB, or my
error!
logs would appear, but they aren't...