Skip to content

Commit

Permalink
Transfers: Fix scitag JSON retrieval interval rucio#6501
Browse files Browse the repository at this point in the history
  • Loading branch information
dchristidis committed Feb 19, 2024
1 parent 48de266 commit 6401f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rucio/transfertool/fts3.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _scitags_ids(logger: Callable[..., Any] = logging.log) -> "tuple[int | None,
if _SCITAGS_NEXT_REFRESH < now:
exp_name = config_get('packet-marking', 'exp_name', default='')
fetch_url = config_get('packet-marking', 'fetch_url', default='https://www.scitags.org/api.json')
fetch_interval = config_get_int('packet-marking', 'fetch_interval', default=datetime.timedelta(hours=48).seconds)
fetch_interval = config_get_int('packet-marking', 'fetch_interval', default=int(datetime.timedelta(hours=48).total_seconds()))
fetch_timeout = config_get_int('packet-marking', 'fetch_timeout', default=5)

_SCITAGS_NEXT_REFRESH = now + datetime.timedelta(seconds=fetch_interval)
Expand Down

0 comments on commit 6401f82

Please sign in to comment.