change pool key random

This commit is contained in:
Himit_ZH 2021-12-21 12:30:05 +08:00
parent 045c20f053
commit eb2929ad6f
3 changed files with 5 additions and 5 deletions

View File

@ -81,7 +81,7 @@ public class Dispatcher {
// 尝试600s
AtomicInteger count = new AtomicInteger(0);
String key = UUID.fastUUID().toString();
String key = UUID.randomUUID().toString() + data.getJudge().getSubmitId();
final String finalOj = oj;
Runnable getResultTask = new Runnable() {
@Override

View File

@ -112,7 +112,7 @@ public class RemoteJudgeReceiver {
// 尝试600s
AtomicInteger tryNum = new AtomicInteger(0);
String key = UUID.fastUUID().toString();
String key = UUID.randomUUID().toString() + toJudge.getJudge().getSubmitId();
Runnable getResultTask = new Runnable() {
@Override
public void run() {
@ -171,7 +171,7 @@ public class RemoteJudgeReceiver {
// 尝试600s
AtomicInteger tryNum = new AtomicInteger(0);
String key = UUID.fastUUID().toString();
String key = UUID.randomUUID().toString() + toJudge.getJudge().getSubmitId();
boolean finalIsHasSubmitIdRemoteReJudge = isHasSubmitIdRemoteReJudge;
Runnable getResultTask = new Runnable() {
@Override
@ -223,7 +223,7 @@ public class RemoteJudgeReceiver {
}
// 尝试600s
String key = UUID.fastUUID().toString();
String key = UUID.randomUUID().toString() + toJudge.getJudge().getSubmitId();
AtomicInteger tryNum = new AtomicInteger(0);
Runnable getResultTask = new Runnable() {
@Override

View File

@ -44,7 +44,7 @@ public class RemoteJudgeGetResult {
String ip, Integer port) {
RemoteJudgeStrategy remoteJudgeStrategy = RemoteJudgeFactory.selectJudge(remoteJudge);
String key = UUID.fastUUID().toString();
String key = UUID.randomUUID().toString() + submitId;
AtomicInteger count = new AtomicInteger(0);
Runnable getResultTask = new Runnable() {
@Override