Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Nov 27, 2019
1 parent 2fadb78 commit b3e9cd5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/introspection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/introspection",
"version": "0.0.142",
"version": "0.0.145",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion cli/prisma2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prisma2",
"version": "2.0.0-alpha.356",
"version": "2.0.0-alpha.359",
"main": "build/index.js",
"repository": "git@github.com:prisma/prisma2-cli.git",
"author": "Tim Suchanek <suchanek@prisma.io>",
Expand Down
2 changes: 1 addition & 1 deletion cli/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/sdk",
"version": "0.0.64",
"version": "0.0.65",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "git@github.com:prisma/prisma2.git",
Expand Down
2 changes: 2 additions & 0 deletions cli/sdk/src/engineCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export async function getDMMF({
await unlink(tempDataModelPath)

if (result.stdout.includes('Please wait until the') && retry > 0) {
debug('Retrying after "Please wait until"')
await new Promise(r => setTimeout(r, 5000))
return getDMMF({
datamodel,
Expand All @@ -82,6 +83,7 @@ export async function getDMMF({
retry > 0
) {
await new Promise(resolve => setTimeout(resolve, 500))
debug('Retrying after ETXTBSY')
return getDMMF({
datamodel,
cwd,
Expand Down

0 comments on commit b3e9cd5

Please sign in to comment.