vjudge: disable destoryOnError

This commit is contained in:
undefined committed 2021-07-31 03:28:10 +08:00
1 parent 28a5c894f7
commit 0c95620fa0
4 files changed
+20 -22

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/vjudge",
"version": "1.2.0",
"version": "1.2.1",
"description": "Submit problems to remote oj",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -79,7 +79,7 @@ class Service {
const res = await this.login();
if (!res) return;
setInterval(() => this.login(), 1 * 3600 * 1000);
TaskModel.consume({ type: 'remotejudge', subType: this.account.type }, this.judge.bind(this));
TaskModel.consume({ type: 'remotejudge', subType: this.account.type }, this.judge.bind(this), false);
const ddocs = await DomainModel.getMulti({ mount: this.account.type }).toArray();
for (const ddoc of ddocs) {
if (!ddoc.syncDone) await this.sync(ddoc._id, false);