Making hemidall seeder to retry instead of ailing
Homelab Main / deploy (push) Successful in 4m51s
Details
Homelab Main / deploy (push) Successful in 4m51s
Details
This commit is contained in:
parent
1b91bde443
commit
62ed2c1f6d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue