Commit 3c8a9895 by haojie

1

parent e870a51a
...@@ -179,8 +179,6 @@ public function stableSubmit(int $userId = 0, array $data = []) ...@@ -179,8 +179,6 @@ public function stableSubmit(int $userId = 0, array $data = [])
]; ];
# 提交redis # 提交redis
Redis::rpush('stable_task', json_encode($sendData)); Redis::rpush('stable_task', json_encode($sendData));
Log::info('下面是stable_task的长度');
Log::info(Redis::llen('stable_task'));
return [ return [
'task_id' => $task->id, 'task_id' => $task->id,
'prompt_num' => $task->prompt_num 'prompt_num' => $task->prompt_num
...@@ -194,7 +192,6 @@ public function getStableTask(array $data = []) ...@@ -194,7 +192,6 @@ public function getStableTask(array $data = [])
{ {
# 获取redis任务 # 获取redis任务
$taskList = Redis::lpop('stable_task'); $taskList = Redis::lpop('stable_task');
Log::info(json_encode($taskList));
return $taskList; return $taskList;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment