chore(remote_judger): set fetch wait time limit to 180s
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-02 14:39:38 +08:00
parent 066f12e899
commit 0cc84f84c0
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
5 changed files with 8 additions and 8 deletions

View File

@ -244,7 +244,7 @@ export default class AtcoderProvider implements IBasicProvider {
const status_url = `/contests/${contestId}/submissions/me/status/json?reload=true&sids[]=${id}`; const status_url = `/contests/${contestId}/submissions/me/status/json?reload=true&sids[]=${id}`;
while (true) { while (true) {
if (++i > 60) { if (++i > 180) {
return await end({ return await end({
id, id,
error: true, error: true,
@ -253,7 +253,7 @@ export default class AtcoderProvider implements IBasicProvider {
}); });
} }
await sleep(2000); await sleep(1000);
const { body, error, header } = await this.get(status_url).retry(3); const { body, error, header } = await this.get(status_url).retry(3);
if (header['set-cookie']) { if (header['set-cookie']) {

View File

@ -294,7 +294,7 @@ export default class CodeforcesProvider implements IBasicProvider {
let i = 0; let i = 0;
while (true) { while (true) {
if (++i > 60) { if (++i > 180) {
return await end({ return await end({
id, id,
error: true, error: true,
@ -303,7 +303,7 @@ export default class CodeforcesProvider implements IBasicProvider {
}); });
} }
await sleep(3000); await sleep(1000);
const { body, error } = await this.post('/data/submitSource') const { body, error } = await this.post('/data/submitSource')
.send({ .send({
csrf_token: this.csrf, csrf_token: this.csrf,

View File

@ -255,7 +255,7 @@ export default class LibreojProvider implements IBasicProvider {
let i = 0; let i = 0;
while (true) { while (true) {
if (++i > 60) { if (++i > 180) {
return await end({ return await end({
id, id,
error: true, error: true,

View File

@ -206,7 +206,7 @@ export default class UOJProvider implements IBasicProvider {
let i = 0; let i = 0;
while (true) { while (true) {
if (++i > 60) { if (++i > 180) {
return await end({ return await end({
id, id,
error: true, error: true,
@ -215,7 +215,7 @@ export default class UOJProvider implements IBasicProvider {
}); });
} }
await sleep(2000); await sleep(1000);
const { text } = await this.get(`/submission/${id}`); const { text } = await this.get(`/submission/${id}`);
const { const {
window: { document }, window: { document },

View File

@ -92,7 +92,7 @@ class AccountService {
await this.api.waitForSubmission(problem_id, rid, next, end); await this.api.waitForSubmission(problem_id, rid, next, end);
} catch (e) { } catch (e) {
logger.error(e); logger.error(e);
await end({ error: true, message: e.message }); await end({ error: true, status: 'Judgment Failed', message: e.message });
} }
} }