|
@@ -10,8 +10,6 @@ class SingleRun extends API {
|
|
|
constructor() {
|
|
constructor() {
|
|
|
super()
|
|
super()
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
this.setPath('/Lepao/SingleRun')
|
|
this.setPath('/Lepao/SingleRun')
|
|
|
this.setMethod('GET')
|
|
this.setMethod('GET')
|
|
|
}
|
|
}
|
|
@@ -89,7 +87,7 @@ class SingleRun extends API {
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
const channel = await mq.getChannel('lepao_api')
|
|
const channel = await mq.getChannel('lepao_api')
|
|
|
- await channel.assertQueue('task_queue', { durable: true })
|
|
|
|
|
|
|
+ await channel.assertQueue('runforge_task_queue', { durable: true })
|
|
|
|
|
|
|
|
const taskId = `lepao:${Date.now()}:${student_num}`
|
|
const taskId = `lepao:${Date.now()}:${student_num}`
|
|
|
const payload = {
|
|
const payload = {
|
|
@@ -103,7 +101,7 @@ class SingleRun extends API {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
channel.sendToQueue(
|
|
channel.sendToQueue(
|
|
|
- 'task_queue',
|
|
|
|
|
|
|
+ 'runforge_task_queue',
|
|
|
Buffer.from(JSON.stringify(payload)),
|
|
Buffer.from(JSON.stringify(payload)),
|
|
|
{ persistent: true, contentType: 'application/json' }
|
|
{ persistent: true, contentType: 'application/json' }
|
|
|
)
|
|
)
|