Failed due to unhealthy allocations (Python container)

Hello,

I’ve developed my Python server that does some calculation every 10 minutes. To launch it, I’ve used flyctl launch. It generated fly.toml and I did not change any configurations.

app = "my-python-server"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[env]

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

Now, after 1 hour of running, it threw me an error:

My start_server() function is below:

def start_server():
    print("start_server()\n")

    schedule.every(10).minutes.do(calculate)
    schedule.every().day.at("05:00").do(send_reports)

    while True:
        schedule.run_pending()

Not sure what’s wrong and how to fix it. I hope someone can help me. Thank you.

UPDATE:
I’ve created a new app to see the deployment status, the result:

flyctl vm status 5c88bdcc returns: