Skip to content

Commit

Permalink
feat(sync): add limit cli options (#1309)
Browse files Browse the repository at this point in the history
* feat(sync): add limit cli options

* fix(ci): reduce concurrency to avoid 505 errors
  • Loading branch information
gunar authored Dec 6, 2022
1 parent ff206e1 commit 21d910b
Show file tree
Hide file tree
Showing 4 changed files with 439 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sync-staging-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
working-directory: scripts/seed-database
- run: pnpm install
working-directory: scripts/seed-database
- run: node ./upsert-production-flows.js --overwrite
- run: node ./upsert-production-flows.js --overwrite --limit 1
working-directory: scripts/seed-database
env:
HASURA_GRAPHQL_URL: https://hasura.editor.planx.dev/v1/graphql
4 changes: 2 additions & 2 deletions scripts/seed-database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"dependencies": {
"graphql": "^16.5.0",
"graphql-request": "^4.3.0",
"lodash": "^4.17.21",
"p-throttle": "^5.0.0"
"meow": "^11.0.0",
"p-limit": "^4.0.0"
},
"devDependencies": {
"@types/lodash": "^4.14.184"
Expand Down
Loading

0 comments on commit 21d910b

Please sign in to comment.