change pool key random
This commit is contained in:
parent
045c20f053
commit
eb2929ad6f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue