Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cron timing changes. #269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions executables/cronProcessesMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,21 @@ class CronProcessesMonitorExecutable extends CronBase {
},
// Restart interval time for periodic crons should match with devops-cron config file.
[cronProcessesConstants.periodicCronsType]: {
[cronProcessesConstants.fundByMasterInternalFunderAuxChainSpecificChainAddresses]: 5 * 60 * 1000,
[cronProcessesConstants.fundByMasterInternalFunderOriginChainSpecific]: 5 * 60 * 1000,
[cronProcessesConstants.fundBySealerAuxChainSpecific]: 5 * 60 * 1000,
[cronProcessesConstants.fundByTokenAuxFunderAuxChainSpecific]: 5 * 60 * 1000,
[cronProcessesConstants.fundByMasterInternalFunderAuxChainSpecificTokenFunderAddresses]: 5 * 60 * 1000,
[cronProcessesConstants.fundByMasterInternalFunderAuxChainSpecificChainAddresses]: 60 * 60 * 1000,
[cronProcessesConstants.fundByMasterInternalFunderOriginChainSpecific]: 60 * 60 * 1000,
[cronProcessesConstants.fundBySealerAuxChainSpecific]: 60 * 60 * 1000,
[cronProcessesConstants.fundByTokenAuxFunderAuxChainSpecific]: 60 * 60 * 1000,
[cronProcessesConstants.fundByMasterInternalFunderAuxChainSpecificTokenFunderAddresses]: 60 * 60 * 1000,
[cronProcessesConstants.fundByMasterInternalFunderAuxChainSpecificInterChainFacilitatorAddresses]:
6 * 60 * 1000,
[cronProcessesConstants.fundByTokenAuxFunderToExTxWorkers]: 15 * 60 * 1000,
[cronProcessesConstants.originToAuxStateRootSync]: 1 * 24 * 60 * 60 * 1000,
[cronProcessesConstants.auxToOriginStateRootSync]: 1 * 24 * 60 * 60 * 1000,
[cronProcessesConstants.updatePriceOraclePricePoints]: 55 * 60 * 1000,
[cronProcessesConstants.executeRecovery]: 10 * 60 * 1000,
[cronProcessesConstants.updateRealtimeGasPrice]: 5 * 60 * 1000,
[cronProcessesConstants.balanceVerifier]: 5 * 60 * 1000,
[cronProcessesConstants.recoveryRequestsMonitor]: 30 * 60 * 1000
60 * 60 * 1000,
[cronProcessesConstants.fundByTokenAuxFunderToExTxWorkers]: 60 * 60 * 1000,
[cronProcessesConstants.originToAuxStateRootSync]: 10 * 24 * 60 * 60 * 1000,
[cronProcessesConstants.auxToOriginStateRootSync]: 10 * 24 * 60 * 60 * 1000,
[cronProcessesConstants.updatePriceOraclePricePoints]: 60 * 60 * 1000,
[cronProcessesConstants.executeRecovery]: 60 * 60 * 1000,
[cronProcessesConstants.updateRealtimeGasPrice]: 60 * 60 * 1000,
[cronProcessesConstants.balanceVerifier]: 24 * 60 * 60 * 1000,
[cronProcessesConstants.recoveryRequestsMonitor]: 60 * 60 * 1000
}
};

Expand Down
18 changes: 9 additions & 9 deletions executables/updateRealTimeGasPrice.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ class UpdateRealTimeGasPrice extends CronBase {
// If estimated gas price is greater than max gas price, send an alert in this scenario.
if (estimatedGasPriceFloat > maxGasPriceGWei) {
logger.error('e_urtgp_2', 'Dynamic gas price is greater than max gas price.');
const errorObject = responseHelper.error({
internal_error_identifier: 'dynamic_gas_price_threshold_exceeded:e_urtgp_2',
api_error_identifier: 'dynamic_gas_price_threshold_exceeded',
debug_options: {
estimatedGasPrice: estimatedGasPriceFloat,
maxGasPriceGWei: maxGasPriceGWei
}
});
await createErrorLogsEntry.perform(errorObject, ErrorLogsConstants.lowSeverity);
// const errorObject = responseHelper.error({
// internal_error_identifier: 'dynamic_gas_price_threshold_exceeded:e_urtgp_2',
// api_error_identifier: 'dynamic_gas_price_threshold_exceeded',
// debug_options: {
// estimatedGasPrice: estimatedGasPriceFloat,
// maxGasPriceGWei: maxGasPriceGWei
// }
// });
// await createErrorLogsEntry.perform(errorObject, ErrorLogsConstants.lowSeverity);
}

// All constants will be stored in Gwei.
Expand Down