mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge: daemon: 上报系统状态
This commit is contained in:
1 parent
9395ba1a7a
commit
a0b0e59389
6 files changed
+24
-4
No files matched your search
@@ -13,6 +13,7 @@ import {
|
||||
Route, Handler, Connection, ConnectionHandler, post, Types,
|
||||
} from '../service/server';
|
||||
import storage from '../service/storage';
|
||||
import { updateJudger } from '../service/monitor';
|
||||
|
||||
const logger = new Logger('judge');
|
||||
|
||||
@@ -134,6 +135,8 @@ class JudgeConnectionHandler extends ConnectionHandler {
|
||||
await end({ judger: this.user._id, ...msg });
|
||||
this.processing = null;
|
||||
await this.newTask();
|
||||
} else if (msg.key === 'status') {
|
||||
await updateJudger(msg.info);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user