4f96b9ef63
* Consolidate metrics updates into one batch job * Try batching updates of metrics * Don't look up all bets again for all contracts * Tidying up * Make computeTotalPool less needlessly inefficient looking
16 lines
337 B
TypeScript
16 lines
337 B
TypeScript
import { initAdmin } from './script-init'
|
|
initAdmin()
|
|
|
|
import { log, logMemory } from '../utils'
|
|
import { updateMetricsCore } from '../update-metrics'
|
|
|
|
async function updateMetrics() {
|
|
logMemory()
|
|
log('Updating metrics...')
|
|
await updateMetricsCore()
|
|
}
|
|
|
|
if (require.main === module) {
|
|
updateMetrics().then(() => process.exit())
|
|
}
|