From 1c1b9a96d9128da27120c1aa69fe099a724ef853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= <75033623+htamas1210@users.noreply.github.com> Date: Wed, 19 Nov 2025 17:34:44 +0100 Subject: [PATCH] Import time module and add sleep in data upload Added time.sleep to control row insertion rate. --- .github/workflows/upload_data.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upload_data.yml b/.github/workflows/upload_data.yml index c0ab435..ca88108 100644 --- a/.github/workflows/upload_data.yml +++ b/.github/workflows/upload_data.yml @@ -20,7 +20,7 @@ jobs: echo "$GOOGLE_SERVICE_ACCOUNT_JSON" > service_account.json python <<'PYCODE' - import gspread, json, subprocess + import gspread, json, subprocess, time creds = json.load(open("service_account.json")) gc = gspread.service_account_from_dict(creds) @@ -38,6 +38,7 @@ jobs: for i, row in enumerate(rows_to_append): worksheet.insert_row(row, start_row + i) + time.sleep(1) with open(f"{v}/test_data.log", "r") as f: