Skip to content

Commit

Permalink
separate total_txns in its own group
Browse files Browse the repository at this point in the history
  • Loading branch information
bragov4ik committed Dec 9, 2024
1 parent c396734 commit cd268c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions stats/config/update_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"total_addresses_group": "0 0 */3 * * * *",
"total_blocks_group": "0 0 */2 * * * *",
"total_tokens_group": "0 0 18 * * * *",
"total_txns_group": "0 5 */2 * * * *",
"yesterday_txns_group": "0 8 0 * * * *",
"active_recurring_accounts_daily_recurrence_60_days_group": "0 0 2 * * * *",
"active_recurring_accounts_daily_recurrence_90_days_group": "0 20 2 * * * *",
Expand Down
1 change: 1 addition & 0 deletions stats/stats-server/src/runtime_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ impl RuntimeSetup {
Arc::new(TotalAddressesGroup),
Arc::new(TotalBlocksGroup),
Arc::new(TotalTokensGroup),
Arc::new(TotalTxnsGroup),
Arc::new(YesterdayTxnsGroup),
Arc::new(ActiveRecurringAccountsDailyRecurrence60DaysGroup),
Arc::new(ActiveRecurringAccountsMonthlyRecurrence60DaysGroup),
Expand Down
2 changes: 1 addition & 1 deletion stats/stats/src/update_groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ singleton_groups!(
TotalAddresses,
TotalBlocks,
TotalTokens,
TotalTxns,
YesterdayTxns,
// Each of the `ActiveRecurringAccounts*` charts includes quite heavy SQL query,
// thus it's better to have granular control on update times.
Expand Down Expand Up @@ -167,7 +168,6 @@ construct_update_group!(NewTxnsGroup {
TxnsGrowthWeekly,
TxnsGrowthMonthly,
TxnsGrowthYearly,
TotalTxns,
],
});

Expand Down

0 comments on commit cd268c8

Please sign in to comment.