mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-25 19:16:19 +00:00
Compare commits
2 commits
8729bb0108
...
a77bcda3aa
Author | SHA1 | Date | |
---|---|---|---|
a77bcda3aa | |||
b93ca09190 |
2 changed files with 10 additions and 5 deletions
8
.github/workflows/sepa-precios-archiver.yml
vendored
8
.github/workflows/sepa-precios-archiver.yml
vendored
|
@ -15,10 +15,10 @@ jobs:
|
||||||
- uses: oven-sh/setup-bun@v2
|
- uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: latest
|
bun-version: latest
|
||||||
# - name: Setup tmate session
|
- name: Setup tmate session
|
||||||
# uses: mxschmitt/action-tmate@v3
|
uses: mxschmitt/action-tmate@v3
|
||||||
# with:
|
with:
|
||||||
# limit-access-to-actor: true
|
limit-access-to-actor: true
|
||||||
|
|
||||||
- name: Run archiver script
|
- name: Run archiver script
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -38,9 +38,14 @@ async function getRawDatasetInfo() {
|
||||||
);
|
);
|
||||||
return await response.json();
|
return await response.json();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`❌ Error fetching dataset info`, error, `retrying in 5min...`);
|
console.error(
|
||||||
|
`❌ Error fetching dataset info`,
|
||||||
|
error,
|
||||||
|
`retrying in 5min...`,
|
||||||
|
);
|
||||||
await new Promise((resolve) => setTimeout(resolve, 5 * 60 * 1000));
|
await new Promise((resolve) => setTimeout(resolve, 5 * 60 * 1000));
|
||||||
return await getRawDatasetInfo();
|
return await getRawDatasetInfo();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveDatasetInfoIntoRepo(datasetInfo: any) {
|
async function saveDatasetInfoIntoRepo(datasetInfo: any) {
|
||||||
|
|
Loading…
Reference in a new issue