chore: Deploy initial configuration and log success in autoconf to avoid the scheduler waiting indefinitely for an instance to be up

This commit is contained in:
Théophile Diot 2024-08-09 17:42:36 +01:00
parent 0f19335e47
commit 29332ff7f3
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -61,6 +61,11 @@ try:
controller.wait_applying(True)
if not controller.apply_config():
LOGGER.error("Error while deploying initial configuration")
else:
LOGGER.info("Successfully deployed initial configuration 🚀")
# Process events
Path(sep, "var", "tmp", "bunkerweb", "autoconf.healthy").write_text("ok")
LOGGER.info("Processing events ...")