Compare commits

..

2 commits

Author SHA1 Message Date
a77bcda3aa tmate 2024-09-01 16:26:47 -03:00
b93ca09190 wow 2024-09-01 16:09:39 -03:00
2 changed files with 10 additions and 5 deletions

View file

@ -15,10 +15,10 @@ jobs:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- name: Run archiver script
env:

View file

@ -38,10 +38,15 @@ async function getRawDatasetInfo() {
);
return await response.json();
} 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));
return await getRawDatasetInfo();
}
}
async function saveDatasetInfoIntoRepo(datasetInfo: any) {
const dir = await mkdtemp("/tmp/sepa-precios-archiver-metadata-repo-");