Skip to content

Commit

Permalink
feat: handled unknown dialect for cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiGajbhiye committed Oct 4, 2024
1 parent 058fed6 commit eaaa4c9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/dbt_client/dbtCloudIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,15 @@ export class DBTCloudProjectIntegration
}
}

private firstRun = false;
private async retryOnce() {
if (this.firstRun) {
return;
}
this.firstRun = true;
this.findAdapterType();
}

private async findAdapterType() {
const adapterTypeCommand = this.dbtCloudCommand(
new DBTCommand("Getting adapter type...", [
Expand Down Expand Up @@ -1063,6 +1072,11 @@ export class DBTCloudProjectIntegration
error,
);
}
if (!this.adapterType) {
setTimeout(() => {
this.retryOnce();
}, 5000);
}
}

private async findVersion() {
Expand Down

0 comments on commit eaaa4c9

Please sign in to comment.