Making hemidall seeder to retry instead of ailing
Homelab Main / deploy (push) Successful in 4m51s Details

This commit is contained in:
juvdiaz 2026-06-02 10:00:27 -06:00
parent 1b91bde443
commit 62ed2c1f6d
1 changed files with 10 additions and 8 deletions

View File

@ -176,15 +176,17 @@ data:
with open(LINKS_PATH, encoding="utf-8") as links_file:
links = json.load(links_file)
db_path = find_database()
connection = wait_for_items_table(db_path)
try:
upsert_links(connection, links)
finally:
connection.close()
while True:
time.sleep(3600)
db_path = find_database()
connection = wait_for_items_table(db_path)
try:
upsert_links(connection, links)
time.sleep(3600)
except sqlite3.Error as error:
print(f"Failed to seed Heimdall links: {error}", flush=True)
time.sleep(10)
finally:
connection.close()
---
apiVersion: apps/v1
kind: Deployment