Skip to content

Commit

Permalink
Move expensive filter to AND
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdw committed Sep 9, 2024
1 parent 978df16 commit bbad44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefect/server/services/cancellation_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ async def clean_up_cancelled_subflow_runs(self, db):
orm_models.FlowRun.state_type == states.StateType.RUNNING,
orm_models.FlowRun.state_type == states.StateType.PAUSED,
orm_models.FlowRun.state_type == states.StateType.CANCELLING,
orm_models.FlowRun.id > high_water_mark,
),
orm_models.FlowRun.id > high_water_mark,
orm_models.FlowRun.parent_task_run_id.is_not(None),
)
.order_by(orm_models.FlowRun.id)
Expand Down

0 comments on commit bbad44a

Please sign in to comment.