Skip to content

Commit

Permalink
reduce cron frequency for unused
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Sep 11, 2023
1 parent 67b6a91 commit 2595c7e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 43 deletions.
10 changes: 3 additions & 7 deletions modules/network/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,11 @@ export const arbitrumNetworkConfig: NetworkConfig = {
},
{
name: 'user-sync-wallet-balances-for-all-pools',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'user-sync-staked-balances',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'sync-user-snapshots',
Expand All @@ -300,7 +296,7 @@ export const arbitrumNetworkConfig: NetworkConfig = {
},
{
name: 'sync-vebal-balances',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(2, 'minutes') : every(1, 'minutes'),
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(3, 'minutes'),
},
{
name: 'sync-vebal-totalSupply',
Expand Down
8 changes: 2 additions & 6 deletions modules/network/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,11 @@ export const avalancheNetworkConfig: NetworkConfig = {
},
{
name: 'user-sync-wallet-balances-for-all-pools',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'user-sync-staked-balances',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'sync-user-snapshots',
Expand Down
8 changes: 2 additions & 6 deletions modules/network/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,11 @@ export const baseNetworkConfig: NetworkConfig = {
},
{
name: 'user-sync-wallet-balances-for-all-pools',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'user-sync-staked-balances',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'sync-user-snapshots',
Expand Down
8 changes: 2 additions & 6 deletions modules/network/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,11 @@ export const gnosisNetworkConfig: NetworkConfig = {
},
{
name: 'user-sync-wallet-balances-for-all-pools',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'user-sync-staked-balances',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'sync-user-snapshots',
Expand Down
8 changes: 2 additions & 6 deletions modules/network/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,15 +415,11 @@ export const mainnetNetworkConfig: NetworkConfig = {
},
{
name: 'user-sync-wallet-balances-for-all-pools',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'user-sync-staked-balances',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'sync-user-snapshots',
Expand Down
8 changes: 2 additions & 6 deletions modules/network/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,11 @@ export const polygonNetworkConfig: NetworkConfig = {
},
{
name: 'user-sync-wallet-balances-for-all-pools',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'user-sync-staked-balances',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'sync-user-snapshots',
Expand Down
8 changes: 2 additions & 6 deletions modules/network/zkevm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,11 @@ export const zkevmNetworkConfig: NetworkConfig = {
},
{
name: 'user-sync-wallet-balances-for-all-pools',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'user-sync-staked-balances',
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(30, 'seconds') : every(15, 'seconds'),
alarmEvaluationPeriod: 1,
alarmDatapointsToAlarm: 1,
interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'),
},
{
name: 'sync-user-snapshots',
Expand Down

0 comments on commit 2595c7e

Please sign in to comment.