parent
85182e7dd1
commit
04d2415eb8
|
@ -40,7 +40,6 @@ const charts = [
|
|||
perUserDriveChart,
|
||||
];
|
||||
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
// 20分おきにメモリ情報をDBに書き込み
|
||||
setInterval(() => {
|
||||
for (const chart of charts) {
|
||||
|
@ -49,4 +48,3 @@ if (process.env.NODE_ENV !== 'test') {
|
|||
}, 1000 * 60 * 20);
|
||||
|
||||
beforeShutdown(() => Promise.all(charts.map(chart => chart.save())));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue