mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
judge: add detail setting to service
This commit is contained in:
1 parent
51114721ea
commit
c0ac4302a2
3 files changed
+19
-13
No files matched your search
@@ -18,16 +18,17 @@ import { compilerText, md5 } from './utils';
|
||||
|
||||
declare module 'hydrooj/src/interface' {
|
||||
interface SystemKeys {
|
||||
'hydrojudge.cache_dir': string,
|
||||
'hydrojudge.tmp_dir': string,
|
||||
'hydrojudge.tmpfs_size': string,
|
||||
'hydrojudge.retry_delay_sec': number,
|
||||
'hydrojudge.sandbox_host': string,
|
||||
'hydrojudge.memoryMax': string,
|
||||
'hydrojudge.testcases_max': number,
|
||||
'hydrojudge.total_time_limit': number,
|
||||
'hydrojudge.parallelism': number,
|
||||
'hydrojudge.disable': boolean,
|
||||
'hydrojudge.cache_dir': string;
|
||||
'hydrojudge.tmp_dir': string;
|
||||
'hydrojudge.tmpfs_size': string;
|
||||
'hydrojudge.retry_delay_sec': number;
|
||||
'hydrojudge.sandbox_host': string;
|
||||
'hydrojudge.memoryMax': string;
|
||||
'hydrojudge.testcases_max': number;
|
||||
'hydrojudge.total_time_limit': number;
|
||||
'hydrojudge.parallelism': number;
|
||||
'hydrojudge.disable': boolean;
|
||||
'hydrojudge.detail': boolean;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,7 +214,7 @@ async function postInit() {
|
||||
this.stat.read_cases = new Date();
|
||||
this.config = await readCases(
|
||||
this.folder,
|
||||
this.config,
|
||||
{ detail: system.get('hydrojudge.detail'), ...this.config },
|
||||
{ next: this.next, key: md5(`${this.source}/${getConfig('secret')}`) },
|
||||
);
|
||||
this.stat.judge = new Date();
|
||||
|
||||
Reference in new issue
Block a user