-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11219 from amaltaro/fix-11163
Use Dataset workqueue start policy for workflows processing MINIAODSIM data
- Loading branch information
Showing
19 changed files
with
445,439 additions
and
201,128 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
49 changes: 49 additions & 0 deletions
49
src/python/WMCore/MicroService/MSTransferor/DataStructs/NanoWorkflow.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Workflow object representing how MiniAODSIM to NanoAODSIM workflows | ||
have to be dealt with in terms of input data placement (MSTransferor) | ||
""" | ||
|
||
from WMCore.MicroService.MSTransferor.DataStructs.Workflow import Workflow | ||
from WMCore.Services.Rucio.RucioUtils import GROUPING_ALL, NUM_COPIES_NANO | ||
|
||
|
||
class NanoWorkflow(Workflow): | ||
""" | ||
Class to represent a very short workflows processing Mini and creating | ||
Nano data, in the context of input data placement in MSTransferor | ||
""" | ||
|
||
def getInputData(self): | ||
""" | ||
Returns the primary dataset name to be locked and | ||
transferred with Rucio, instead of a list of blocks. | ||
:return: a list with the input dataset name and an integer | ||
with their total size | ||
""" | ||
inputContainer = [self.getInputDataset()] | ||
totalBlockSize = sum([blockInfo['blockSize'] for blockInfo in self.getPrimaryBlocks().values()]) | ||
|
||
# the whole container must be locked | ||
return inputContainer, totalBlockSize | ||
|
||
def getRucioGrouping(self): | ||
""" | ||
Returns the rucio rule grouping for growing workflows. | ||
Input blocks can be scattered all over the provided | ||
RSE expression. | ||
:return: a string with the required DID grouping | ||
""" | ||
return GROUPING_ALL | ||
|
||
def getReplicaCopies(self): | ||
""" | ||
Returns the number of replica copies to be defined in | ||
a given rucio rule. Standard/default value is 1. | ||
:return: an integer with the number of copies | ||
""" | ||
return NUM_COPIES_NANO |
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
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
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
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
Oops, something went wrong.