Skip to content

Commit 7859c6b

Browse files
fix: Use JobStateUpdateClient instead of deactivating it
1 parent e3b1d68 commit 7859c6b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/DIRAC/Core/Tornado/Client/ClientSelector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ def ClientSelector(disetClient, *args, **kwargs): # We use same interface as RP
7373
else:
7474
if isServiceLegacyAdapted:
7575
# Only warn to deactivate it without making the code crash.
76-
sLog.warn("FutureClient is provided but not activated, do you need to update your client?")
76+
sLog.warn(
77+
f"FutureClient for {serviceName} is provided but not activated, do you need to update your client?"
78+
)
7779

7880
completeUrl = getServiceURL(serviceName)
7981
sLog.debug(f"URL resolved: {completeUrl}")

src/DIRAC/WorkloadManagementSystem/Client/JobStateUpdateClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class JobStateUpdateClient(Client):
1111
"""JobStateUpdateClient sets url for the JobStateUpdateHandler."""
1212

13-
diracxClient = None
13+
diracxClient = futureJobStateUpdateClient
1414

1515
def __init__(self, url=None, **kwargs):
1616
"""

0 commit comments

Comments
 (0)