修正dispatcher,使用redis存任务队列,修正submission的post,修改部分settings
This commit is contained in:
@@ -41,7 +41,8 @@ class JudgeServer(models.Model):
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
if (timezone.now() - self.last_heartbeat).total_seconds() > 5:
|
||||
# 增加一秒延时,提高对网络环境的适应性
|
||||
if (timezone.now() - self.last_heartbeat).total_seconds() > 6:
|
||||
return "abnormal"
|
||||
return "normal"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user