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:
|
with open(LINKS_PATH, encoding="utf-8") as links_file:
|
||||||
links = json.load(links_file)
|
links = json.load(links_file)
|
||||||
|
|
||||||
|
while True:
|
||||||
db_path = find_database()
|
db_path = find_database()
|
||||||
connection = wait_for_items_table(db_path)
|
connection = wait_for_items_table(db_path)
|
||||||
try:
|
try:
|
||||||
upsert_links(connection, links)
|
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:
|
finally:
|
||||||
connection.close()
|
connection.close()
|
||||||
|
|
||||||
while True:
|
|
||||||
time.sleep(3600)
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue