Skip to content

Commit

Permalink
add timelog to stats
Browse files Browse the repository at this point in the history
  • Loading branch information
dashcraft committed Mar 7, 2022
1 parent 8343718 commit cabf531
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/cron/src/jobs/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export async function updateMetrics({ roPg, rwPg }) {
updateUploadsCount(roPg, rwPg, t)
)
),
updateUsersCount(roPg, rwPg),
updateTotalUploadPast7(roPg, rwPg),
updateTotalDeals(roPg, rwPg),
updateTotalDealsSize(roPg, rwPg),
updateContentRootDagSizeSum(roPg, rwPg),
withTimeLog('updateTotalUploadPast7', () =>
updateTotalUploadPast7(roPg, rwPg)
),
withTimeLog('updateTotalDeals', () => updateTotalDeals(roPg, rwPg)),
withTimeLog('updateTotalDealsSize', () => updateTotalDealsSize(roPg, rwPg)),
...PIN_SERVICES.map((svc) =>
PIN_STATUSES.map((s) =>
withTimeLog(`updatePinsCount[${svc}][${s}]`, () =>
Expand Down

0 comments on commit cabf531

Please sign in to comment.