i saw a couple of questions re: long-

i saw a couple of questions re: long-running containers (e.g. a Discord bot), is that a use case that CF containers support? it seems like this could be hacked together with a cron acting as a keepalive and a long value for sleepAfter, but are there other limitations to be aware of?
2 Replies
Mike Nomitch
Mike Nomitch2mo ago
Hey, so its a valid use case, with the caveat that we might kill the container at random times 😅 How long running do you need? With a long sleepAfter, we'll just allow it to run but we sometimes need to cycle machines, in which case we'll send a SIGTERM, then allow 15 min before a SIGKILL and hard stop so if you can gracefully retry and handle those retries, then I think its valid just know this might be an issue
mike
mikeOP2mo ago
for a discord bot given their interface we’d need it to run “forever” - helpful context, thanks!

Did you find this page helpful?