https://linen.dev logo
Discord bot deployment stop
# help
a
Hi everyone, I'm hosting a discord bot on shuttle and everything works like a charm but
cargo shuttle stop
After stopping project bot runs still and only
cargo shuttle project rm
is able to take it down. I'm almost certain that the problem is that I do not shut down connections with shard manager like shown here: https://github.com/serenity-rs/serenity/blob/f42ec021126fe8bb07158631e871a17ee70acbf2/examples/e06_sample_bot_structure/src/main.rs#L103 The problem is, I don't know where to attach to capture shutdown signal on shuttle to shutdown the connections. For local development I use https://lib.rs/crates/serenity_ctrlc and it works fine, but it seems like shuttle stops deployment differently
k
Hey! Sorry for the trouble, this is a bug we have currently, so only
project rm
will stop a deployment properly. We are going to fix this in next weeks release, though.
a
Thanks for the info!
2 Views