From 9b0e35e5a6091212316d68f3674bebd5a3b77713 Mon Sep 17 00:00:00 2001 From: Max Mykal Date: Thu, 6 Apr 2023 15:05:59 -0700 Subject: [PATCH] check for missing backfills --- web/client/src/library/components/plan/Plan.tsx | 2 +- web/server/api/endpoints/plan.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/client/src/library/components/plan/Plan.tsx b/web/client/src/library/components/plan/Plan.tsx index 0cd4e48f12..203414d29b 100644 --- a/web/client/src/library/components/plan/Plan.tsx +++ b/web/client/src/library/components/plan/Plan.tsx @@ -133,7 +133,7 @@ function Plan({ } else { setPlanAction(EnumPlanAction.Apply) } - }, [planState, isPlanRan, hasChanges, hasBackfills]) + }, [planState, isPlanRan, hasChanges, hasBackfills, hasVirtualUpdate]) useEffect(() => { if (activePlan == null) return diff --git a/web/server/api/endpoints/plan.py b/web/server/api/endpoints/plan.py index e095151e68..3176b42958 100644 --- a/web/server/api/endpoints/plan.py +++ b/web/server/api/endpoints/plan.py @@ -68,7 +68,7 @@ async def run_plan( end=plan.end, ) - if plan.context_diff.has_changes: + if plan.context_diff.has_changes or plan.requires_backfill: batches = context.scheduler().batches() tasks = {snapshot.name: len(intervals) for snapshot, intervals in batches.items()}