Skip to content
This repository was archived by the owner on Jan 16, 2020. It is now read-only.

Commit 7af64f4

Browse files
committed
When the retry script fails, exit with an error code so the manager will restart it.
1 parent 664ffae commit 7af64f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/retry.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ var processFailures = function( fn ) {
8787
processFailures(function( error ) {
8888
if ( error ) {
8989
logger.error( "Error during retry: " + error.stack );
90+
91+
// Kill the process with an error code and let the manager restart it
92+
process.exit( 1 );
9093
}
9194
});
9295

0 commit comments

Comments
 (0)