From 9202a2afe77b70f1603c31bed58b325c66ef68ca Mon Sep 17 00:00:00 2001 From: franz Date: Tue, 31 Oct 2023 14:53:57 +0100 Subject: [PATCH] further reduce cron times --- modules/network/arbitrum.ts | 22 +++++++++++----------- modules/network/avalanche.ts | 22 +++++++++++----------- modules/network/base.ts | 22 +++++++++++----------- modules/network/fantom.ts | 14 +++++--------- modules/network/gnosis.ts | 22 +++++++++++----------- modules/network/mainnet.ts | 22 +++++++++++----------- modules/network/optimism.ts | 26 +++++++++++--------------- modules/network/polygon.ts | 22 +++++++++++----------- modules/network/zkevm.ts | 22 +++++++++++----------- 9 files changed, 93 insertions(+), 101 deletions(-) diff --git a/modules/network/arbitrum.ts b/modules/network/arbitrum.ts index 8c88f6108..5a5264910 100644 --- a/modules/network/arbitrum.ts +++ b/modules/network/arbitrum.ts @@ -269,7 +269,7 @@ export const arbitrumNetworkConfig: NetworkConfig = { }, { name: 'update-liquidity-for-active-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(6, 'minutes') : every(4, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(4, 'minutes'), }, { name: 'update-pool-apr', @@ -277,19 +277,19 @@ export const arbitrumNetworkConfig: NetworkConfig = { }, { name: 'load-on-chain-data-for-pools-with-active-updates', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(7, 'minutes') : every(3, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(5, 'minutes'), }, { name: 'sync-new-pools-from-subgraph', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(8, 'minutes'), }, { name: 'sync-tokens-from-pool-tokens', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(7, 'minutes'), }, { name: 'update-liquidity-24h-ago-for-all-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(11, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(8, 'minutes'), }, { name: 'cache-average-block-time', @@ -297,15 +297,15 @@ export const arbitrumNetworkConfig: NetworkConfig = { }, { name: 'sync-staking-for-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(10, 'minutes'), }, { name: 'sync-latest-snapshots-for-all-pools', - interval: every(1, 'hours'), + interval: every(90, 'minutes'), }, { name: 'update-lifetime-values-for-all-pools', - interval: every(30, 'minutes'), + interval: every(45, 'minutes'), }, { name: 'sync-changed-pools', @@ -333,15 +333,15 @@ export const arbitrumNetworkConfig: NetworkConfig = { }, { name: 'update-fee-volume-yield-all-pools', - interval: every(1, 'hours'), + interval: every(75, 'minutes'), }, { name: 'sync-vebal-balances', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(14, 'minutes'), }, { name: 'sync-vebal-totalSupply', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(11, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(16, 'minutes'), }, ], }; diff --git a/modules/network/avalanche.ts b/modules/network/avalanche.ts index 2730083f5..5725ea5b6 100644 --- a/modules/network/avalanche.ts +++ b/modules/network/avalanche.ts @@ -259,7 +259,7 @@ export const avalancheNetworkConfig: NetworkConfig = { }, { name: 'update-liquidity-for-active-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(6, 'minutes') : every(4, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(4, 'minutes'), }, { name: 'update-pool-apr', @@ -267,19 +267,19 @@ export const avalancheNetworkConfig: NetworkConfig = { }, { name: 'load-on-chain-data-for-pools-with-active-updates', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(7, 'minutes') : every(3, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(5, 'minutes'), }, { name: 'sync-new-pools-from-subgraph', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(8, 'minutes'), }, { name: 'sync-tokens-from-pool-tokens', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(7, 'minutes'), }, { name: 'update-liquidity-24h-ago-for-all-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(11, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(8, 'minutes'), }, { name: 'cache-average-block-time', @@ -287,15 +287,15 @@ export const avalancheNetworkConfig: NetworkConfig = { }, { name: 'sync-staking-for-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(10, 'minutes'), }, { name: 'sync-latest-snapshots-for-all-pools', - interval: every(1, 'hours'), + interval: every(90, 'minutes'), }, { name: 'update-lifetime-values-for-all-pools', - interval: every(30, 'minutes'), + interval: every(45, 'minutes'), }, { name: 'sync-changed-pools', @@ -323,15 +323,15 @@ export const avalancheNetworkConfig: NetworkConfig = { }, { name: 'update-fee-volume-yield-all-pools', - interval: every(1, 'hours'), + interval: every(75, 'minutes'), }, { name: 'sync-vebal-balances', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(14, 'minutes'), }, { name: 'sync-vebal-totalSupply', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(11, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(16, 'minutes'), }, ], }; diff --git a/modules/network/base.ts b/modules/network/base.ts index 7a8d1efa1..51e43a18b 100644 --- a/modules/network/base.ts +++ b/modules/network/base.ts @@ -157,7 +157,7 @@ export const baseNetworkConfig: NetworkConfig = { }, { name: 'update-liquidity-for-active-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(6, 'minutes') : every(4, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(4, 'minutes'), }, { name: 'update-pool-apr', @@ -165,19 +165,19 @@ export const baseNetworkConfig: NetworkConfig = { }, { name: 'load-on-chain-data-for-pools-with-active-updates', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(7, 'minutes') : every(3, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(5, 'minutes'), }, { name: 'sync-new-pools-from-subgraph', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(8, 'minutes'), }, { name: 'sync-tokens-from-pool-tokens', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(7, 'minutes'), }, { name: 'update-liquidity-24h-ago-for-all-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(11, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(8, 'minutes'), }, { name: 'cache-average-block-time', @@ -185,15 +185,15 @@ export const baseNetworkConfig: NetworkConfig = { }, { name: 'sync-staking-for-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(10, 'minutes'), }, { name: 'sync-latest-snapshots-for-all-pools', - interval: every(1, 'hours'), + interval: every(90, 'minutes'), }, { name: 'update-lifetime-values-for-all-pools', - interval: every(30, 'minutes'), + interval: every(45, 'minutes'), }, { name: 'sync-changed-pools', @@ -221,15 +221,15 @@ export const baseNetworkConfig: NetworkConfig = { }, { name: 'update-fee-volume-yield-all-pools', - interval: every(1, 'hours'), + interval: every(75, 'minutes'), }, { name: 'sync-vebal-balances', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(14, 'minutes'), }, { name: 'sync-vebal-totalSupply', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(11, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(16, 'minutes'), }, ], }; diff --git a/modules/network/fantom.ts b/modules/network/fantom.ts index b4125a68f..07c7ed9bf 100644 --- a/modules/network/fantom.ts +++ b/modules/network/fantom.ts @@ -402,34 +402,30 @@ export const fantomNetworkConfig: NetworkConfig = { }, { name: 'sync-latest-snapshots-for-all-pools', - interval: every(1, 'hours'), + interval: every(90, 'minutes'), }, { name: 'update-lifetime-values-for-all-pools', - interval: every(30, 'minutes'), + interval: every(50, 'minutes'), }, { name: 'sync-changed-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(2, 'minutes') : every(20, 'seconds'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(2, 'minutes') : every(30, 'seconds'), alarmEvaluationPeriod: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, alarmDatapointsToAlarm: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, }, { name: 'user-sync-wallet-balances-for-all-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(15, 'seconds'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(20, 'seconds'), alarmEvaluationPeriod: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, alarmDatapointsToAlarm: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, }, { name: 'user-sync-staked-balances', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(15, 'seconds'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(20, 'seconds'), alarmEvaluationPeriod: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, alarmDatapointsToAlarm: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, }, - { - name: 'sync-user-snapshots', - interval: every(1, 'hours'), - }, { name: 'sync-latest-reliquary-snapshots', interval: every(1, 'hours'), diff --git a/modules/network/gnosis.ts b/modules/network/gnosis.ts index 69bd6a671..360c75540 100644 --- a/modules/network/gnosis.ts +++ b/modules/network/gnosis.ts @@ -185,7 +185,7 @@ export const gnosisNetworkConfig: NetworkConfig = { }, { name: 'update-liquidity-for-active-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(6, 'minutes') : every(4, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(4, 'minutes'), }, { name: 'update-pool-apr', @@ -193,19 +193,19 @@ export const gnosisNetworkConfig: NetworkConfig = { }, { name: 'load-on-chain-data-for-pools-with-active-updates', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(7, 'minutes') : every(3, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(5, 'minutes'), }, { name: 'sync-new-pools-from-subgraph', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(8, 'minutes'), }, { name: 'sync-tokens-from-pool-tokens', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(7, 'minutes'), }, { name: 'update-liquidity-24h-ago-for-all-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(11, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(8, 'minutes'), }, { name: 'cache-average-block-time', @@ -213,15 +213,15 @@ export const gnosisNetworkConfig: NetworkConfig = { }, { name: 'sync-staking-for-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(10, 'minutes'), }, { name: 'sync-latest-snapshots-for-all-pools', - interval: every(1, 'hours'), + interval: every(90, 'minutes'), }, { name: 'update-lifetime-values-for-all-pools', - interval: every(30, 'minutes'), + interval: every(45, 'minutes'), }, { name: 'sync-changed-pools', @@ -249,15 +249,15 @@ export const gnosisNetworkConfig: NetworkConfig = { }, { name: 'update-fee-volume-yield-all-pools', - interval: every(1, 'hours'), + interval: every(75, 'minutes'), }, { name: 'sync-vebal-balances', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(14, 'minutes'), }, { name: 'sync-vebal-totalSupply', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(11, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(16, 'minutes'), }, ], }; diff --git a/modules/network/mainnet.ts b/modules/network/mainnet.ts index 61bbaf8ee..e693631bb 100644 --- a/modules/network/mainnet.ts +++ b/modules/network/mainnet.ts @@ -413,7 +413,7 @@ export const mainnetNetworkConfig: NetworkConfig = { }, { name: 'update-liquidity-for-active-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(6, 'minutes') : every(4, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(4, 'minutes'), }, { name: 'update-pool-apr', @@ -421,19 +421,19 @@ export const mainnetNetworkConfig: NetworkConfig = { }, { name: 'load-on-chain-data-for-pools-with-active-updates', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(7, 'minutes') : every(3, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(5, 'minutes'), }, { name: 'sync-new-pools-from-subgraph', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(8, 'minutes'), }, { name: 'sync-tokens-from-pool-tokens', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(7, 'minutes'), }, { name: 'update-liquidity-24h-ago-for-all-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(11, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(8, 'minutes'), }, { name: 'cache-average-block-time', @@ -441,15 +441,15 @@ export const mainnetNetworkConfig: NetworkConfig = { }, { name: 'sync-staking-for-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(10, 'minutes'), }, { name: 'sync-latest-snapshots-for-all-pools', - interval: every(1, 'hours'), + interval: every(90, 'minutes'), }, { name: 'update-lifetime-values-for-all-pools', - interval: every(30, 'minutes'), + interval: every(45, 'minutes'), }, { name: 'sync-changed-pools', @@ -477,15 +477,15 @@ export const mainnetNetworkConfig: NetworkConfig = { }, { name: 'update-fee-volume-yield-all-pools', - interval: every(1, 'hours'), + interval: every(75, 'minutes'), }, { name: 'sync-vebal-balances', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(14, 'minutes'), }, { name: 'sync-vebal-totalSupply', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(11, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(16, 'minutes'), }, { name: 'sync-vebal-voting-gauges', diff --git a/modules/network/optimism.ts b/modules/network/optimism.ts index d122e7a5f..88b9d890e 100644 --- a/modules/network/optimism.ts +++ b/modules/network/optimism.ts @@ -76,7 +76,7 @@ const optimismNetworkData: NetworkData = { delegationProxy: '0x9da18982a33fd0c7051b19f0d7c76f2d5e7e017c', }, gyro: { - config: '0x32acb44fc929339b9f16f0449525cc590d2a23f3' + config: '0x32acb44fc929339b9f16f0449525cc590d2a23f3', }, balancer: { vault: '0xba12222222228d8ba445958a75a0704d566bf2c8', @@ -264,13 +264,13 @@ export const optimismNetworkConfig: NetworkConfig = { optimismNetworkData.balancer.yieldProtocolFeePercentage, optimismNetworkData.balancer.swapProtocolFeePercentage, ), - new PhantomStableAprService(optimismNetworkData.chain.prismaId, optimismNetworkData.balancer.yieldProtocolFeePercentage), + new PhantomStableAprService( + optimismNetworkData.chain.prismaId, + optimismNetworkData.balancer.yieldProtocolFeePercentage, + ), new BoostedPoolAprService(), new SwapFeeAprService(optimismNetworkData.balancer.swapProtocolFeePercentage), - new GaugeAprService(tokenService, [ - optimismNetworkData.beets!.address, - optimismNetworkData.bal!.address, - ]), + new GaugeAprService(tokenService, [optimismNetworkData.beets!.address, optimismNetworkData.bal!.address]), ], poolStakingServices: [new GaugeStakingService(gaugeSubgraphService, optimismNetworkData.bal!.address)], tokenPriceHandlers: [ @@ -340,34 +340,30 @@ export const optimismNetworkConfig: NetworkConfig = { }, { name: 'sync-latest-snapshots-for-all-pools', - interval: every(1, 'hours'), + interval: every(90, 'minutes'), }, { name: 'update-lifetime-values-for-all-pools', - interval: every(30, 'minutes'), + interval: every(50, 'minutes'), }, { name: 'sync-changed-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(2, 'minutes') : every(20, 'seconds'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(2, 'minutes') : every(30, 'seconds'), alarmEvaluationPeriod: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, alarmDatapointsToAlarm: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, }, { name: 'user-sync-wallet-balances-for-all-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(15, 'seconds'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(20, 'seconds'), alarmEvaluationPeriod: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, alarmDatapointsToAlarm: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, }, { name: 'user-sync-staked-balances', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(15, 'seconds'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(20, 'seconds'), alarmEvaluationPeriod: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, alarmDatapointsToAlarm: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, }, - { - name: 'sync-user-snapshots', - interval: every(1, 'hours'), - }, { name: 'sync-coingecko-coinids', interval: every(2, 'hours'), diff --git a/modules/network/polygon.ts b/modules/network/polygon.ts index 9afa8ccdc..cf3c9227f 100644 --- a/modules/network/polygon.ts +++ b/modules/network/polygon.ts @@ -304,7 +304,7 @@ export const polygonNetworkConfig: NetworkConfig = { }, { name: 'update-liquidity-for-active-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(6, 'minutes') : every(4, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(4, 'minutes'), }, { name: 'update-pool-apr', @@ -312,19 +312,19 @@ export const polygonNetworkConfig: NetworkConfig = { }, { name: 'load-on-chain-data-for-pools-with-active-updates', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(7, 'minutes') : every(3, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(5, 'minutes'), }, { name: 'sync-new-pools-from-subgraph', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(8, 'minutes'), }, { name: 'sync-tokens-from-pool-tokens', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(7, 'minutes'), }, { name: 'update-liquidity-24h-ago-for-all-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(11, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(8, 'minutes'), }, { name: 'cache-average-block-time', @@ -332,15 +332,15 @@ export const polygonNetworkConfig: NetworkConfig = { }, { name: 'sync-staking-for-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(10, 'minutes'), }, { name: 'sync-latest-snapshots-for-all-pools', - interval: every(1, 'hours'), + interval: every(90, 'minutes'), }, { name: 'update-lifetime-values-for-all-pools', - interval: every(30, 'minutes'), + interval: every(45, 'minutes'), }, { name: 'sync-changed-pools', @@ -368,15 +368,15 @@ export const polygonNetworkConfig: NetworkConfig = { }, { name: 'update-fee-volume-yield-all-pools', - interval: every(1, 'hours'), + interval: every(75, 'minutes'), }, { name: 'sync-vebal-balances', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(14, 'minutes'), }, { name: 'sync-vebal-totalSupply', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(11, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(16, 'minutes'), }, ], }; diff --git a/modules/network/zkevm.ts b/modules/network/zkevm.ts index 842b69741..cc45ad53e 100644 --- a/modules/network/zkevm.ts +++ b/modules/network/zkevm.ts @@ -204,7 +204,7 @@ export const zkevmNetworkConfig: NetworkConfig = { }, { name: 'update-liquidity-for-active-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(6, 'minutes') : every(4, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(4, 'minutes'), }, { name: 'update-pool-apr', @@ -212,19 +212,19 @@ export const zkevmNetworkConfig: NetworkConfig = { }, { name: 'load-on-chain-data-for-pools-with-active-updates', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(7, 'minutes') : every(3, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(5, 'minutes'), }, { name: 'sync-new-pools-from-subgraph', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(8, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(8, 'minutes'), }, { name: 'sync-tokens-from-pool-tokens', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(5, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(7, 'minutes'), }, { name: 'update-liquidity-24h-ago-for-all-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(11, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(8, 'minutes'), }, { name: 'cache-average-block-time', @@ -232,15 +232,15 @@ export const zkevmNetworkConfig: NetworkConfig = { }, { name: 'sync-staking-for-pools', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(12, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(10, 'minutes'), }, { name: 'sync-latest-snapshots-for-all-pools', - interval: every(1, 'hours'), + interval: every(90, 'minutes'), }, { name: 'update-lifetime-values-for-all-pools', - interval: every(30, 'minutes'), + interval: every(45, 'minutes'), }, { name: 'sync-changed-pools', @@ -268,15 +268,15 @@ export const zkevmNetworkConfig: NetworkConfig = { }, { name: 'update-fee-volume-yield-all-pools', - interval: every(1, 'hours'), + interval: every(75, 'minutes'), }, { name: 'sync-vebal-balances', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(9, 'minutes') : every(6, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(14, 'minutes'), }, { name: 'sync-vebal-totalSupply', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(15, 'minutes') : every(11, 'minutes'), + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(20, 'minutes') : every(16, 'minutes'), }, ], };