fix: correct configmap yaml structure with retry logic
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: garmin-sync-script
|
||||
namespace: garmin
|
||||
data:
|
||||
sync.py: |
|
||||
import os
|
||||
import time
|
||||
from datetime import date, timedelta
|
||||
@@ -8,7 +15,6 @@ email = os.environ["GARMIN_EMAIL"]
|
||||
password = os.environ["GARMIN_PASSWORD"]
|
||||
db_url = os.environ["DATABASE_URL"]
|
||||
|
||||
# Retry-Login bei 429
|
||||
client = Garmin(email, password)
|
||||
for attempt in range(5):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user