Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core & Internals: Regression fix for judge #6569 #6570

Merged
merged 1 commit into from Mar 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rucio/core/rule.py
Expand Up @@ -2113,8 +2113,8 @@ def get_updated_dids(
stmt = stmt.where(tuple_(models.UpdatedDID.scope, models.UpdatedDID.name).notin_(chunk))

if limit:
fetched_dids = stmt.order_by(models.UpdatedDID.created_at).limit(limit).all()
filtered_dids = [did for did in fetched_dids if (did.scope, did.name) not in blocked_dids]
fetched_dids = session.execute(stmt.order_by(models.UpdatedDID.created_at).limit(limit)).all()
filtered_dids = [did._tuple() for did in fetched_dids if (did.scope, did.name) not in blocked_dids]
if len(fetched_dids) == limit and not filtered_dids:
return get_updated_dids(total_workers=total_workers,
worker_number=worker_number,
Expand Down