Skip to content

Commit

Permalink
Run catalogs workflow every hour (#73)
Browse files Browse the repository at this point in the history
* Run catalogs workflow every hour

* Reload catalog every 15m
  • Loading branch information
r4victor authored Jun 12, 2024
1 parent c8bb9a7 commit 7bde031
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/catalogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
required: true
default: stgn
schedule:
- cron: '0 1 * * *' # 01:00 UTC every day
- cron: '5 * * * *' # Run every hour at HH:05

env:
PIP_DISABLE_PIP_VERSION_CHECK: on
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
pattern: catalogs-*
merge-multiple: true
- name: Write version
run: date +%Y%m%d > version
run: echo "$(date +%Y%m%d)-${{ github.run_number }}" > version
- name: Package catalogs
run: zip catalog.zip *.csv version
- name: Set channel
Expand Down
2 changes: 1 addition & 1 deletion src/gpuhunt/_internal/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
catalog_url = "https://dstack-gpu-pricing.s3.eu-west-1.amazonaws.com/v1/{version}/catalog.zip"
OFFLINE_PROVIDERS = ["aws", "azure", "datacrunch", "gcp", "lambdalabs", "oci", "runpod"]
ONLINE_PROVIDERS = ["cudo", "tensordock", "vastai"]
RELOAD_INTERVAL = 4 * 60 * 60 # 4 hours
RELOAD_INTERVAL = 15 * 60 # 15 minutes


class Catalog:
Expand Down

0 comments on commit 7bde031

Please sign in to comment.