Python discord bot ignores auto_stop_machines = false setting


I’ve created a discord bot for a small server. To prevent it from turning off during nights/workday, I’ve set auto-stop_machine to false.

My problem is that whether the server is active or not, it keeps turning off after a few minutes. Monitoring gives me these logs:

2023-06-22T16:35:24.834 proxy [17811071fe9038] cdg [info] Downscaling app eriza in region cdg. Automatically stopping machine 17811071fe9038. 1 instance is running but has no load

2023-06-22T16:35:24.839 app[17811071fe9038] cdg [info] INFO Sending signal SIGINT to main child process w/ PID 514

2023-06-22T16:35:29.891 app[17811071fe9038] cdg [info] INFO Sending signal SIGTERM to main child process w/ PID 514

2023-06-22T16:35:30.848 app[17811071fe9038] cdg [info] INFO Main child exited with signal (with signal ‘SIGTERM’, core dumped? false)

2023-06-22T16:35:30.848 app[17811071fe9038] cdg [info] INFO Starting clean up.

My fly.toml file is the following:

app = “eriza”
primary_region = “cdg”
kill_signal = “SIGINT”
kill_timeout = 5
processes =

auto_stop_machines = false
auto_start_machines = false
min_machines_running = 1

I’ve read through the forums and tried it with [[services]] instead of [http_service], to no avail. My only idea is that I’ve another app, the postgres db, which I don’t use for now; might it be turning off and dragging the main app with it? However, it’s set to automatically shut down after one hour, not a few minutes.

@Sen can you redeploy your app again?

Hi, @kwaw! I’ve done so 50 minutes ago and, so far, my app hasn’t crashed yet. It seems whatever was wrong was fixed! Thank you very much for your speed and efficiency :blush:

amazing, we had a small regression that affected a few users & you happened to be one of them :frowning:
glad your app is working fine!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.