Skip to content

Commit 942a313

Browse files
committed
fix(python): replace deprecated V1Handler with V1LifecycleHandler (#672)
The `V1Handler` Kubernetes Python client class has been deprecated in favour of `V1LifecycleHandler`, available since kubernetes client v23.6.0 coming with reana-commons 0.95.0a14.
1 parent ce03f12 commit 942a313

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

reana_workflow_controller/workflow_run_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def _create_job_spec(
726726
ports=[],
727727
# Make sure that all the jobs are stopped before the deletion of the run-batch pod
728728
lifecycle=client.V1Lifecycle(
729-
pre_stop=client.V1Handler(
729+
pre_stop=client.V1LifecycleHandler(
730730
http_get=client.V1HTTPGetAction(
731731
port=JOB_CONTROLLER_CONTAINER_PORT,
732732
path=JOB_CONTROLLER_SHUTDOWN_ENDPOINT,

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# This file is part of REANA.
4-
# Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025 CERN.
4+
# Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026 CERN.
55
#
66
# REANA is free software; you can redistribute it and/or modify it
77
# under the terms of the MIT License; see LICENSE file for more details.
@@ -51,7 +51,7 @@
5151
"marshmallow>2.13.0,<3.0.0", # same upper pin as reana-server
5252
"opensearch-py>=2.7.0,<2.8.0",
5353
"packaging>=18.0",
54-
"reana-commons[kubernetes]>=0.95.0a12,<0.96.0",
54+
"reana-commons[kubernetes]>=0.95.0a14,<0.96.0",
5555
"reana-db>=0.95.0a6,<0.96.0",
5656
"requests>=2.25.0",
5757
"sqlalchemy-utils>=0.31.0",

0 commit comments

Comments
 (0)