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
But I can't find any other place in the code base which references to CRAB_SiteAdUpdate.
Is that code simply "never executed" ?
PreJob uses site.ad.json to create site lists avalaible (where we can run) and ``datasites(where data is). If it does not find it, falls back tosite.ad` to create list of available sites, only, and at first sight it should crash since `datasites` is unconditionally used in following code
There is also this very interesting commit from Brain 10y ago 75b85ca which looks like he introduced the JSON, leaving the old code for temporary compatibility (?) and then.. change stuck.
So I am leaning to site.ad can be removed.
AFAICT those two files are created by DagmanCreator
Then DagmanCreator calls createSubdag() which gets the list of data sites and available sites for each job groups (one job group for each set of locations, IIUC)
since a long time only
site.ad.json
is used ! ref: #8699 (comment)text pasted here for convenience:
site.ad vs. site.ad.json
manipulation of
site.ad
in AdjustSites,py is unchanged since Brian's commit in 2013.CRABServer/scripts/AdjustSites.py
Lines 481 to 487 in e8149dd
But I can't find any other place in the code base which references to CRAB_SiteAdUpdate.
Is that code simply "never executed" ?
PreJob uses
site.ad.json
to create site listsavalaible
(where we can run) and ``datasites(where data is). If it does not find it, falls back to
site.ad` to create list of available sites, only, and at first sight it should crash since `datasites` is unconditionally used in following codeThere is also this very interesting commit from Brain 10y ago 75b85ca which looks like he introduced the JSON, leaving the old code for temporary compatibility (?) and then.. change stuck.
So I am leaning to
site.ad
can be removed.AFAICT those two files are created by DagmanCreator
CRABServer/src/python/TaskWorker/Actions/DagmanCreator.py
Lines 1089 to 1090 in e8149dd
Yet I can't be sure nor figure out how they are populated from reading the code. Need to run it step-by-step.
site.ad.json
containssiteinfo
structuresite.ad
containssitead
strucutrethose structures are initialized to "empty" in
CRABServer/src/python/TaskWorker/Actions/DagmanCreator.py
Lines 805 to 816 in e8149dd
(when DagmanCreator runs in TW, there are no files to read)
so in particular we start with
Then DagmanCreator calls createSubdag() which gets the list of data sites and available sites for each job groups (one job group for each set of locations, IIUC)
CRABServer/src/python/TaskWorker/Actions/DagmanCreator.py
Line 891 in e8149dd
CRABServer/src/python/TaskWorker/Actions/DagmanCreator.py
Line 896 in e8149dd
CRABServer/src/python/TaskWorker/Actions/DagmanCreator.py
Line 910 in e8149dd
CRABServer/src/python/TaskWorker/Actions/DagmanCreator.py
Line 933 in e8149dd
CRABServer/src/python/TaskWorker/Actions/DagmanCreator.py
Lines 943 to 944 in e8149dd
and calls makeDagSpecs() where those are added to
siteinfo
dictionaryCRABServer/src/python/TaskWorker/Actions/DagmanCreator.py
Lines 599 to 601 in e8149dd
(no comment on the what looks like a horrible dirty trick with L599)
My conclusion from the above is that
site.ad
is old, obsolete, useless and can be simply removed.The text was updated successfully, but these errors were encountered: