cuddly-jelly-27016
05/16/2025, 12:10 AMpanic: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp xxx.xxx.xxx.xxx:81: connect: connection refused"
We should wait until the flyteadmin is up and running, before trying to connect to it.
### Expected behavior
No crash loop of the flytescheduler at start
### Additional context to reproduce
Logs from the flytescheduler pod show:
panic: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp xxx.xxx.xxx.xxx:81: connect: connection refused"
Apparently, the scheduler connects to the flyteadmin before the flyteadmin is up and healthy; after a few retries it succeeds, so we should wait for the admin to be up before starting the scheduler
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
05/16/2025, 12:10 AM