You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
have a single JSON file and pass the jobId to CMSRunAnalysis.py.It is the one I picked I had played with this idea already for preparelocal creates one json file with args for job. Fix #5276 #5287 but I wanted to preserve an easy way to look a the arguments with cat when working interactively in the local directory.
Maybe make a tarball with the individual JSON and expand it in run_job.sh as done now for CMSRunAnalysis.tar.gz ?
The text was updated successfully, but these errors were encountered:
So the first step will be to use that file in CMSRunAnalysis.py passing to the script simple the jobId as argument instead of the current Arguments = "-a $(CRAB_Archive) --sourceURL=$(CRAB_ISB) --jobNumber=$(CRAB_Id) --cmsswVersion=$(CRAB_JobSW) --scramArch=$(CRAB_JobArch) '--inputFile=$(inputFiles)' '--runAndLumis=$(runAndLumiMask)' --lheInputFiles=$(lheInputFiles) --firstEvent=$(firstEvent) --firstLumi=$(firstLumi) --lastEvent=$(lastEvent) --firstRun=$(firstRun) --seeding=$(seeding) --scriptExe=$(scriptExe) --eventsPerLumi=$(eventsPerLumi) --maxRuntime=$(maxRuntime) '--scriptArgs=$(scriptArgs)' -o $(CRAB_AdditionalOutputFiles)" dmwm/CRABServer#8869
a new version of preparelocal is now in my branch https://github.com/belforte/CRABClient/tree/use-json-file-for-job-args-5288 and works. But it requires the modified CMSRunAnalysis.py.
I do not see any easy way to make this backward compatible, would need to somehow detect the version of CMSRunAnalyis.py inside preparelocal.py, doable but very ugly and possibly fragile.
So this change can only be pushed to Client once TW has been changed in production and all old tasks completed.
It is instead very easy to keep supporting --json argument to CMSRunAnalyisis.py, i.e. have the new TW backward compatible with current client.
bulding up on #5276 and #5287 two things are needed in order to fully deprecated old code and remove it
CRABClient/src/python/CRABClient/Commands/preparelocal.py
Line 89 in 28add71
cat
when working interactively in the local directory.run_job.sh
as done now forCMSRunAnalysis.tar.gz
?The text was updated successfully, but these errors were encountered: