chainlink icon indicating copy to clipboard operation
chainlink copied to clipboard

[FEAT] Introduce wait loop for PGSQL

Open yorickdowne opened this issue 4 years ago • 3 comments

Description On startup of chainlink node, have a wait loop for configured PGSQL URL instead of exiting.

Motivation This is a QoL feature, it makes for easier deployment in docker-compose dev environments. This can be solved currently with a custom image that adds dockerize.

yorickdowne avatar Mar 24 '21 17:03 yorickdowne

How long do you think it should wait for? Should it loop for a certain period of time?

PatrickAlphaC avatar Mar 26 '21 11:03 PatrickAlphaC

60s would be sufficient to allow PostgreSQL to start up if it's in the same k8s/docker-compose "stack"

yorickdowne avatar Mar 26 '21 17:03 yorickdowne

Isn't it sufficient to just use https://github.com/peter-evans/docker-compose-healthcheck or https://github.com/vishnubob/wait-for-it and then make PG a dependency for the CL service?

pinebit avatar Jul 01 '22 11:07 pinebit