Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naspirato committed Jan 8, 2025
1 parent d83a21a commit 8f75cd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 1 addition & 5 deletions .github/scripts/analytics/test_history_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import configparser
import os


# Load configuration
dir = os.path.dirname(__file__)
config = configparser.ConfigParser()
Expand Down Expand Up @@ -132,9 +131,6 @@ def main():
credentials=ydb.credentials_from_env_variables()
) as driver:
driver.wait(timeout=10, fail_fast=True)
session = ydb.retry_operation_sync(
lambda: driver.table_client.session().create()
)
with ydb.SessionPool(driver) as pool:
prepared_for_upload_rows = get_missed_data_for_upload(driver)
print(f'Preparing to upsert: {len(prepared_for_upload_rows)} rows')
Expand All @@ -148,4 +144,4 @@ def main():
print('Nothing to upload')

if __name__ == "__main__":
main()
main()
5 changes: 1 addition & 4 deletions .github/workflows/collect_analytics_fast.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Collect-analytics-fast-run
on:
schedule:
- cron: "*/10 * * * *" # Every 1 h
- cron: "*/5 * * * *" # Every 1 h
workflow_dispatch:
inputs:
commit_sha:
Expand Down Expand Up @@ -29,6 +29,3 @@ jobs:
python3 -m pip install ydb ydb[yc] codeowners pandas
- name: Upload new test history to fast table
run: python3 .github/scripts/analytics/test_history_fast.py



0 comments on commit 8f75cd1

Please sign in to comment.