diff --git a/packages/contentstack-variants/src/import/experiences.ts b/packages/contentstack-variants/src/import/experiences.ts index ca171595c9..bd627ea13e 100644 --- a/packages/contentstack-variants/src/import/experiences.ts +++ b/packages/contentstack-variants/src/import/experiences.ts @@ -59,8 +59,8 @@ export default class Experiences extends PersonalizationAdapter { this.experiencesUidMapper = {}; this.cmsVariantGroups = {}; this.cmsVariants = {}; - this.expThresholdTimer = this.experienceConfig?.thresholdTimer ?? 60000; - this.expCheckIntervalDuration = this.experienceConfig?.checkIntervalDuration ?? 10000; + this.expThresholdTimer = this.experienceConfig?.thresholdTimer ?? 30000; + this.expCheckIntervalDuration = this.experienceConfig?.checkIntervalDuration ?? 5000; this.maxValidateRetry = Math.round(this.expThresholdTimer / this.expCheckIntervalDuration); this.pendingVariantAndVariantGrpForExperience = []; this.cTsSuccessPath = resolve(this.config.backupDir, 'mapper', 'content_types', 'success.json'); @@ -144,14 +144,14 @@ export default class Experiences extends PersonalizationAdapter { if (this.pendingVariantAndVariantGrpForExperience?.length) { if (retryCount !== this.maxValidateRetry) { - await this.delay(5000); + await this.delay(this.expCheckIntervalDuration); // Filter out the processed elements this.pendingVariantAndVariantGrpForExperience = this.pendingVariantAndVariantGrpForExperience.filter( (uid) => !this.cmsVariants[uid], ); return this.validateVariantGroupAndVariantsCreated(retryCount); } else { - this.log(this.config, this.messages.PERSONALIZATION_JOB_FAILURE, 'info'); + this.log(this.config, this.messages.PERSONALIZATION_JOB_FAILURE, 'error'); fsUtil.writeFile(this.failedCmsExpPath, this.pendingVariantAndVariantGrpForExperience); return false; } diff --git a/packages/contentstack-variants/src/messages/index.ts b/packages/contentstack-variants/src/messages/index.ts index cae18c9a86..bfaf6d2b9c 100644 --- a/packages/contentstack-variants/src/messages/index.ts +++ b/packages/contentstack-variants/src/messages/index.ts @@ -1,15 +1,15 @@ import memoize from 'lodash/memoize'; const errors = { - CREATE_FAILURE: '${module} created failed!', + CREATE_FAILURE: '{module} created failed!', }; const commonMsg = { - CREATE_SUCCESS: '${module} created successfully!', + CREATE_SUCCESS: '{module} created successfully!', }; const migrationMsg = { - IMPORT_MSG: 'Migrating ${module}...', + IMPORT_MSG: 'Migrating {module}...', }; const variantEntry = {