mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: ensure tmpdir
This commit is contained in:
1 parent
f834d9ca87
commit
c57b304576
2 files changed
+3
No files matched your search
@@ -75,6 +75,7 @@ const session = {
|
||||
|
||||
export async function postInit() {
|
||||
if (SystemModel.get('hydrojudge.disable')) return;
|
||||
await fs.ensureDir(getConfig('tmp_dir'));
|
||||
const handle = async (t) => {
|
||||
const rdoc = await RecordModel.get(t.domainId, t.rid);
|
||||
(new JudgeTask(session, Object.assign(rdoc, t))).handle().catch(logger.error);
|
||||
|
||||
Reference in new issue
Block a user