Skip to content

Commit

Permalink
feat: increase org creation times to 60 at 30 secs interval
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Apr 6, 2022
1 parent fd364e8 commit 859a54b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/datalayer/syncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ const getSubscribedStoreData = async (
alreadySubscribed = false,
retry = 0,
) => {
if (retry >= 20) {
if (retry >= 60) {
throw new Error('Max retrys exceeded, Can not subscribe to organization');
}

const timeoutInterval = 60000;
const timeoutInterval = 30000;

if (!alreadySubscribed) {
const response = await subscribeToStoreOnDataLayer(storeId, ip, port);
Expand Down
2 changes: 1 addition & 1 deletion src/datalayer/writeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const syncDataLayer = async (storeId, data, failedCallback) => {

const retry = (storeId, changeList, failedCallback, retryAttempts) => {
log('RETRYING...', retryAttempts);
if (retryAttempts >= 10) {
if (retryAttempts >= 60) {
log('Could not push changelist to datalayer after retrying 10 times');
failedCallback();
return;
Expand Down

0 comments on commit 859a54b

Please sign in to comment.