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}`;
while (true) {
if (++i > 60) {
if (++i > 180) {
return await end({
id,
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);
if (header['set-cookie']) {

View File

@ -294,7 +294,7 @@ export default class CodeforcesProvider implements IBasicProvider {
let i = 0;
while (true) {
if (++i > 60) {
if (++i > 180) {
return await end({
id,
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')
.send({
csrf_token: this.csrf,

View File

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

View File

@ -206,7 +206,7 @@ export default class UOJProvider implements IBasicProvider {
let i = 0;
while (true) {
if (++i > 60) {
if (++i > 180) {
return await end({
id,
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 {
window: { document },

View File

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