judge: do not clean if checker=default

pull/15/head
undefined 4 years ago
parent 508e42b0eb
commit 51a6b8b9c4

@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.1.10",
"version": "2.1.11",
"main": "package.json",
"author": "masnn",
"dependencies": {

@ -135,7 +135,7 @@ export const judge = async (ctx) => {
);
})(),
]);
ctx.clean.push(ctx.checker.clean);
if (ctx.checker) ctx.clean.push(ctx.checker.clean);
ctx.clean.push(ctx.execute.clean);
ctx.next({ status: STATUS.STATUS_JUDGING, progress: 0 });
const tasks = [];

@ -40,11 +40,11 @@ export interface EventMap {
'user/message': (uid: number, mdoc: Mdoc, udoc: User) => void
'user/get': (udoc: User) => void
'domain/create': (ddoc: DomainDoc) => void
'domain/before-get': (query: FilterQuery<DomainDoc>) => void
'domain/get': (ddoc: DomainDoc) => void
'domain/before-update': (domainId: string, $set: Partial<DomainDoc>) => void
'domain/update': (domainId: string, $set: Partial<DomainDoc>, ddoc: DomainDoc) => void
'domain/create': (ddoc: DomainDoc) => VoidReturn
'domain/before-get': (query: FilterQuery<DomainDoc>) => VoidReturn
'domain/get': (ddoc: DomainDoc) => VoidReturn
'domain/before-update': (domainId: string, $set: Partial<DomainDoc>) => VoidReturn
'domain/update': (domainId: string, $set: Partial<DomainDoc>, ddoc: DomainDoc) => VoidReturn
'document/add': (doc: any) => VoidReturn
'document/set': <T extends keyof DocType>

Loading…
Cancel
Save