Skip to content

Commit

Permalink
submit --dryrun. print info about last trial (#5184)
Browse files Browse the repository at this point in the history
submit --dryrun needs to run for at least 25s in order not
to make its estimates based on very few small events.
If the first dryrun attempt is too short, the same cmsRun
comman is called again, with an increasing number of events.
with this commit, every trial reports how long it took and
how many events the next trial will process.
  • Loading branch information
mapellidario authored Jan 24, 2023
1 parent aabf772 commit 6637f80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python/CRABClient/Commands/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ def executeTestRun(self, filecacheurl, uniquerequestname):
totalJobSeconds = 0
maxSeconds = 25
while totalJobSeconds < maxSeconds:
if totalJobSeconds != 0:
self.logger.info("Last trial took only %.1f seconds. We are trying now with %.0f events", totalJobSeconds, events)
optsList = getCMSRunAnalysisOpts('Job.submit', 'RunJobs.dag', job=1, events=events)
# from a python list to a string which can be used as shell command argument
opts = ''
Expand Down

0 comments on commit 6637f80

Please sign in to comment.