change pool key random
This commit is contained in:
parent
045c20f053
commit
eb2929ad6f
|
@ -81,7 +81,7 @@ public class Dispatcher {
|
||||||
|
|
||||||
// 尝试600s
|
// 尝试600s
|
||||||
AtomicInteger count = new AtomicInteger(0);
|
AtomicInteger count = new AtomicInteger(0);
|
||||||
String key = UUID.fastUUID().toString();
|
String key = UUID.randomUUID().toString() + data.getJudge().getSubmitId();
|
||||||
final String finalOj = oj;
|
final String finalOj = oj;
|
||||||
Runnable getResultTask = new Runnable() {
|
Runnable getResultTask = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -112,7 +112,7 @@ public class RemoteJudgeReceiver {
|
||||||
|
|
||||||
// 尝试600s
|
// 尝试600s
|
||||||
AtomicInteger tryNum = new AtomicInteger(0);
|
AtomicInteger tryNum = new AtomicInteger(0);
|
||||||
String key = UUID.fastUUID().toString();
|
String key = UUID.randomUUID().toString() + toJudge.getJudge().getSubmitId();
|
||||||
Runnable getResultTask = new Runnable() {
|
Runnable getResultTask = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
@ -171,7 +171,7 @@ public class RemoteJudgeReceiver {
|
||||||
|
|
||||||
// 尝试600s
|
// 尝试600s
|
||||||
AtomicInteger tryNum = new AtomicInteger(0);
|
AtomicInteger tryNum = new AtomicInteger(0);
|
||||||
String key = UUID.fastUUID().toString();
|
String key = UUID.randomUUID().toString() + toJudge.getJudge().getSubmitId();
|
||||||
boolean finalIsHasSubmitIdRemoteReJudge = isHasSubmitIdRemoteReJudge;
|
boolean finalIsHasSubmitIdRemoteReJudge = isHasSubmitIdRemoteReJudge;
|
||||||
Runnable getResultTask = new Runnable() {
|
Runnable getResultTask = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -223,7 +223,7 @@ public class RemoteJudgeReceiver {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 尝试600s
|
// 尝试600s
|
||||||
String key = UUID.fastUUID().toString();
|
String key = UUID.randomUUID().toString() + toJudge.getJudge().getSubmitId();
|
||||||
AtomicInteger tryNum = new AtomicInteger(0);
|
AtomicInteger tryNum = new AtomicInteger(0);
|
||||||
Runnable getResultTask = new Runnable() {
|
Runnable getResultTask = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class RemoteJudgeGetResult {
|
||||||
String ip, Integer port) {
|
String ip, Integer port) {
|
||||||
|
|
||||||
RemoteJudgeStrategy remoteJudgeStrategy = RemoteJudgeFactory.selectJudge(remoteJudge);
|
RemoteJudgeStrategy remoteJudgeStrategy = RemoteJudgeFactory.selectJudge(remoteJudge);
|
||||||
String key = UUID.fastUUID().toString();
|
String key = UUID.randomUUID().toString() + submitId;
|
||||||
AtomicInteger count = new AtomicInteger(0);
|
AtomicInteger count = new AtomicInteger(0);
|
||||||
Runnable getResultTask = new Runnable() {
|
Runnable getResultTask = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue