mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: daemon: 上报系统状态
This commit is contained in:
1 parent
9395ba1a7a
commit
a0b0e59389
6 files changed
+24
-4
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.20.4",
|
||||
"version": "2.20.5",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -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