Skip to content

Commit

Permalink
fix: 修复订阅任务详情接口报错关联任务不存在的问题 (fixed #2237)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon authored and wyyalt committed Jun 17, 2024
1 parent 45e4ab8 commit e10b952
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/backend/subscription/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ def task_result(
)
task_id_list = [subscription_tasks[0]["id"]]

# 检查任务是否已准备就绪
is_ready = self.check_task_ready(task_id_list)
if not is_ready:
raise errors.SubscriptionTaskNotReadyError(task_id_list=task_id_list)
# 如果不需要聚合全部 task,这里需要检查任务是否就绪
if not need_aggregate_all_tasks:
# 检查任务是否已准备就绪
is_ready = self.check_task_ready(task_id_list)
if not is_ready:
raise errors.SubscriptionTaskNotReadyError(task_id_list=task_id_list)

begin, end = None, None
if pagesize != -1:
Expand Down

0 comments on commit e10b952

Please sign in to comment.