add message to mq
This commit is contained in:
@@ -39,3 +39,4 @@ def judge(submission_id, time_limit, memory_limit, test_case_id):
|
|||||||
conn.close()
|
conn.close()
|
||||||
r = redis.Redis(host=redis_config["host"], port=redis_config["port"], db=redis_config["db"])
|
r = redis.Redis(host=redis_config["host"], port=redis_config["port"], db=redis_config["db"])
|
||||||
r.decr("judge_queue_length")
|
r.decr("judge_queue_length")
|
||||||
|
r.lpush("queue", submission_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user