Skip to content

Commit 07e4c58

Browse files
committed
feat (FTS3): force the redelegation to FTS when less than a third of the proxy lifetime is left
1 parent 838b43a commit 07e4c58

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/DIRAC/DataManagementSystem/Client/FTS3Job.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -763,15 +763,13 @@ def generateContext(ftsServer, ucert, lifetime=25200):
763763
# decides that there is not enough timeleft.
764764
# At the moment, this is 1 hour, which effectively means that if you do
765765
# not submit a job for more than 1h, you have no valid proxy in FTS servers
766-
# anymore. In future release of FTS3, the delegation will be triggered when
766+
# anymore, and all the jobs failed.So we force it when
767767
# one third of the lifetime will be left.
768768
# Also, the proxy given as parameter might have less than "lifetime" left
769769
# since it is cached, but it does not matter, because in the FTS3Agent
770770
# we make sure that we renew it often enough
771-
# Finally, FTS3 has an issue with handling the lifetime of the proxy,
772-
# because it does not check all the chain. This is under discussion
773-
# https://its.cern.ch/jira/browse/FTS-1575
774-
fts3.delegate(context, lifetime=datetime.timedelta(seconds=lifetime))
771+
td_lifetime = datetime.timedelta(seconds=lifetime)
772+
fts3.delegate(context, lifetime=td_lifetime, delegate_when_lifetime_lt=td_lifetime / 3)
775773

776774
return S_OK(context)
777775
except FTS3ClientException as e:

0 commit comments

Comments
 (0)