Skip to content

Commit

Permalink
updated code for retry
Browse files Browse the repository at this point in the history
  • Loading branch information
girish-lokapure committed Feb 6, 2024
1 parent cebb23d commit cf53b51
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,19 @@ const SiteGen = () => {
currentData.sitegen.skipCache = false;
}
setCurrentOnboardingData( currentData );
} else if ( retryCount < MAX_RETRIES_SITE_GEN ) {
}
} catch ( err ) {
if ( retryCount < MAX_RETRIES_SITE_GEN ) {
performSiteGenMetaGeneration(
siteInfo,
identifier,
skipCache,
retryCount + 1
);
} else {
currentData.sitegen.siteGenErrorStatus = true;
updateSiteGenErrorStatus( true );
}
} catch ( err ) {
currentData.sitegen.siteGenErrorStatus = true;
updateSiteGenErrorStatus( true );
}
}

Expand Down

0 comments on commit cf53b51

Please sign in to comment.