Skip to content

Commit

Permalink
Fix query for subflow cancellation (#15292)
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdw authored Sep 9, 2024
1 parent 01a2778 commit d67e9ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ jobs:
- name: Install packages
run: |
python -m pip install -U uv
uv pip install --upgrade --system -e .[dev] 'pydantic>=2.4,<3'
uv pip install --upgrade --system -e .[dev] 'pydantic>=2.4,<2.9.0'
- name: Set PREFECT_EXPERIMENTAL_ENABLE_PYDANTIC_V2_INTERNALS env var
run: echo "PREFECT_EXPERIMENTAL_ENABLE_PYDANTIC_V2_INTERNALS=1" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion flows/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main():
TEST_SERVER_VERSION
) >= Version("2.8"):
subprocess.check_call(
["python", "-m", "pip", "install", "prefect-kubernetes"],
["python", "-m", "pip", "install", "prefect-kubernetes<0.5.0"],
stdout=sys.stdout,
stderr=sys.stderr,
)
Expand Down
2 changes: 1 addition & 1 deletion requirements-client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pathspec >= 0.8.0
pendulum < 3.0; python_version < '3.12'
pendulum >= 3.0.0, <4; python_version >= '3.12'
# the version constraints for pydantic are merged with those from fastapi 0.103.2
pydantic[email]>=1.10.0,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0
pydantic[email]>=1.10.0,!=2.0.0,!=2.0.1,!=2.1.0,<2.9.0
pydantic_core >= 2.12.0, < 3.0.0
python_dateutil >= 2.8.2, < 3.0.0
python-slugify >= 5.0, < 9.0
Expand Down
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 @@ -84,8 +84,8 @@ async def clean_up_cancelled_subflow_runs(self, db):
db.FlowRun.state_type == states.StateType.RUNNING,
db.FlowRun.state_type == states.StateType.PAUSED,
db.FlowRun.state_type == states.StateType.CANCELLING,
db.FlowRun.id > high_water_mark,
),
db.FlowRun.id > high_water_mark,
db.FlowRun.parent_task_run_id.is_not(None),
)
.order_by(db.FlowRun.id)
Expand Down

0 comments on commit d67e9ff

Please sign in to comment.