File tree Expand file tree Collapse file tree
src/subCommands/deploy/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,11 +75,18 @@ export default class ProvisionConfig extends Base {
7575 await logs.run();
7676 logger.warn('=========== LAST 10 MINUTES END =========== ');
7777 */
78- getCurrentErrorCount ++ ;
79- if ( getCurrentErrorCount > 3 || ( index > 6 && getCurrentErrorCount > 0 ) ) {
80- throw new Error (
81- `get ${ this . functionName } /${ qualifier } provision config error: ${ currentError } ` ,
82- ) ;
78+ // 如果是系统内部错误,则继续尝试
79+ if ( ! currentError . includes ( 'an internal error has occurred' ) ) {
80+ // 不是系统内部错误,满足一定的重试次数则退出
81+ getCurrentErrorCount ++ ;
82+ if ( getCurrentErrorCount > 3 || ( index > 6 && getCurrentErrorCount > 0 ) ) {
83+ logger . error (
84+ `get ${ this . functionName } /${ qualifier } provision config getCurrentErrorCount=${ getCurrentErrorCount } ` ,
85+ ) ;
86+ throw new Error (
87+ `get ${ this . functionName } /${ qualifier } provision config error: ${ currentError } ` ,
88+ ) ;
89+ }
8390 }
8491 }
8592 logger . info (
You can’t perform that action at this time.
0 commit comments