forked from rucio/rucio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transfers: Skip submitting requests from expired rules rucio#6505
When the Cleaner handles an expired rule, it deletes requests in state QUEUED (and states prior to it) and it tries to cancel (to FTS) requests in state SUBMITTED. The Submitter, however, tries to submit QUEUED requests. This can create two problems: (1) contention between the two daemons and (2) inefficiency (submitting a request only to cancel it shortly after). This commit adjusts the underlying database query to skip requests whose directly-associated rule has expired. There are two somewhat special cases that won’t be fully handled: (1) requests without any rule associated to them (e.g. multi-hop transfers, replica recovery) and (2) request which are reused (if there are two or more rules that result in a transfer of the same file to the same destination, then the first request to be created by one rule is reused by the others).
- Loading branch information
1 parent
1b05476
commit 9076672
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters