From 42b8951f941cd03b6bd269ccd33e535edd5677d4 Mon Sep 17 00:00:00 2001 From: aldbr Date: Mon, 10 Jul 2023 10:29:32 +0200 Subject: [PATCH] feat: mark ARC/ARC6CE interfaces as deprecated --- src/DIRAC/Resources/Computing/ARC6ComputingElement.py | 2 ++ src/DIRAC/Resources/Computing/ARCComputingElement.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/DIRAC/Resources/Computing/ARC6ComputingElement.py b/src/DIRAC/Resources/Computing/ARC6ComputingElement.py index ca9bc80b0f6..a89fb5eda0e 100755 --- a/src/DIRAC/Resources/Computing/ARC6ComputingElement.py +++ b/src/DIRAC/Resources/Computing/ARC6ComputingElement.py @@ -22,9 +22,11 @@ import arc # Has to work if this module is called #pylint: disable=import-error from DIRAC import S_OK, S_ERROR +from DIRAC.Core.Utilities.Decorators import deprecated from DIRAC.Resources.Computing.ARCComputingElement import ARCComputingElement, prepareProxyToken +@deprecated("Use AREXComputingElement instead", onlyOnce=True) class ARC6ComputingElement(ARCComputingElement): def __init__(self, ceUniqueID): """Standard constructor.""" diff --git a/src/DIRAC/Resources/Computing/ARCComputingElement.py b/src/DIRAC/Resources/Computing/ARCComputingElement.py index 1a53f33bd0b..ef8234b6061 100755 --- a/src/DIRAC/Resources/Computing/ARCComputingElement.py +++ b/src/DIRAC/Resources/Computing/ARCComputingElement.py @@ -55,6 +55,7 @@ from DIRAC.Core.Utilities.Subprocess import shellCall from DIRAC.Core.Utilities.List import breakListIntoChunks from DIRAC.Core.Security.ProxyInfo import getVOfromProxyGroup +from DIRAC.Core.Utilities.Decorators import deprecated from DIRAC.Resources.Computing.ComputingElement import ComputingElement from DIRAC.Resources.Computing.PilotBundle import writeScript from DIRAC.WorkloadManagementSystem.Client import PilotStatus @@ -110,6 +111,7 @@ def wrapper(*args, **kwargs): return wrapper +@deprecated("Use AREXComputingElement instead", onlyOnce=True) class ARCComputingElement(ComputingElement): _arcLevels = ["DEBUG", "VERBOSE", "INFO", "WARNING", "ERROR", "FATAL"]