Skip to content

Commit

Permalink
Update step message if the step takes too long
Browse files Browse the repository at this point in the history
  • Loading branch information
aswasif007 committed May 24, 2024
1 parent 5c739c9 commit a01d7f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/commands/phpmyadmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,15 @@ export class PhpMyAdminCommand {
await enablePhpMyAdmin( this.env.id as number );
await pollUntil( this.getStatus.bind( this ), 1000, ( sts: string ) => sts === 'running' );
}

const timeout = setTimeout( () => {
this.progressTracker.updateMessage(
'Enabling PHPMyAdmin for this environment. This step may take a while. We appreciate your patience.'
);
}, 30000 );

await pollUntil( this.readyToServe.bind( this ), 5000 );
clearTimeout( timeout );
}

async run( silent = false ): Promise< void > {
Expand Down

0 comments on commit a01d7f5

Please sign in to comment.