Skip to content

Commit

Permalink
fix: 修复重试接口实例快照筛选不生效的问题 (fixed #2207)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon authored and wyyalt committed Jun 13, 2024
1 parent 006113d commit bf63c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/subscription/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def retry(
# 如果没有按 task_id_list 隔离,并不能简单排除非失败状态,因为在订阅巡检周期内实例存在多次结果不同的快照
# 在上述情况下,仅需保证需要重试的实例在最新快照没有成功即可
if not task_id_list:
exclude_instance_record_qs.filter(is_latest=Value(1))
exclude_instance_record_qs = exclude_instance_record_qs.filter(is_latest=Value(1))

exclude_instance_ids: Set[int] = set(exclude_instance_record_qs.values_list("instance_id", flat=True))
instance_record_qs = models.SubscriptionInstanceRecord.objects.filter(
Expand Down

0 comments on commit bf63c8b

Please sign in to comment.