https://linen.dev logo
When deploying changes to my discord bot more than...
# help
t
When i make changes to my discord bot that is already deployed and run
cargo shuttle deploy
i get two responses back from my bot when im only expecting one, leading me to believe there are two or more instances waiting for messages.
g
The runtime that runs a discord bot is not being shut down correctly for the time being. This means that in the mean time, we need to do
Copy code
cargo shuttle project rm
cargo shuttle project new --idle-minutes 0
cargo shuttle deploy
to redeploy a discord bot. :/
t
I came to that same conclusion with respect to those commands. Any idea of a fix coming in a later release?
g
Also, I need to renew the bot's discord token to get the old one to shut down correctly (crash 😉 ). (remember to update Secrets.toml before deploy)
The issue is tracked but not very actively being worked on https://github.com/shuttle-hq/shuttle/issues/614
k
We are actually working on a refactor this week that should solve this issue 🥳
g
Are you solving the Runtime ownership or switching over to compiling a binary? 👀
k
We are switching to compiling a binary, and then embedding the code needed to load resources etc. with the updated codegen:
7 Views