Skip to content

Commit

Permalink
look for output modules in FinalPaths as well. Fix #5160 (#5161)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Mar 23, 2022
1 parent 37caaf2 commit fac67f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/python/CRABClient/JobType/CMSSWConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ def outputFiles(self):
for n in m.moduleNames():
modulesOnEndPaths.add(n)

# add modules in FinalPaths if available
if hasattr(process, "finalpaths_"):
for m in process.finalpaths_().itervalues():
if len(pathsToRun)==0 or m.label() in pathsToRun:
for n in m.moduleNames():
modulesOnEndPaths.add(n)

outputModules = set()
for n,o in process.outputModules_().items():
if n in modulesOnEndPaths and hasattr(o, 'fileName'):
Expand Down

0 comments on commit fac67f5

Please sign in to comment.