Skip to content

Commit

Permalink
Typing: Fix SQLA query in get_evaluation_backlog; #6550
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio committed Mar 13, 2024
1 parent cdd847f commit 5900441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rucio/core/rule.py
Expand Up @@ -2425,7 +2425,7 @@ def get_evaluation_backlog(expiration_time: int = 600, *, session: "Session") ->
cached_backlog = REGION.get('rule_evaluation_backlog', expiration_time=expiration_time)
if cached_backlog is NO_VALUE:
stmt = select(func.count(models.UpdatedDID.created_at), func.min(models.UpdatedDID.created_at))
result = session.execute(stmt).scalars().one()
result = session.execute(stmt).one()._tuple()
REGION.set('rule_evaluation_backlog', result)
return result
else:
Expand Down

0 comments on commit 5900441

Please sign in to comment.