mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-09-08 01:45:18 +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}`;
|
||||
|
||||
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']) {
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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 },
|
||||
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user