mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 22:38:40 +00:00
chore(remote_judger): set fetch wait time limit to 180s
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
066f12e899
commit
0cc84f84c0
@ -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']) {
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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 },
|
||||||
|
@ -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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user