Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LHCbDIRAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Anton Lu
LHCbDIRAC
Commits
1b44e6b6
Commit
1b44e6b6
authored
7 years ago
by
Philippe Charpentier
Browse files
Options
Downloads
Patches
Plain Diff
fix logging when no RAW or Buffer replication is required
parent
4e9fe22f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LHCbDIRAC/TransformationSystem/Agent/TransformationPlugin.py
+19
-15
19 additions, 15 deletions
LHCbDIRAC/TransformationSystem/Agent/TransformationPlugin.py
with
19 additions
and
15 deletions
LHCbDIRAC/TransformationSystem/Agent/TransformationPlugin.py
+
19
−
15
View file @
1b44e6b6
...
...
@@ -251,7 +251,7 @@ class TransformationPlugin( DIRACTransformationPlugin ):
else
:
assignedRAW
=
res
[
'
Value
'
]
self
.
util
.
logVerbose
(
"
RAW destination assigned for run %d: %s
"
%
(
runID
,
assignedRAW
)
)
els
e
:
el
if
rawTarget
s
:
self
.
util
.
logVerbose
(
"
Run destination not yet defined for run %d
"
%
runID
)
# We can go to next in the loop there
continue
...
...
@@ -278,26 +278,30 @@ class TransformationPlugin( DIRACTransformationPlugin ):
else
:
self
.
util
.
logWarn
(
'
Failed to find Buffer destination SE for run
'
,
str
(
runID
)
)
continue
els
e
:
el
if
bufferTarget
s
:
self
.
util
.
logVerbose
(
"
Run destination not yet defined for run %d
"
%
runID
)
elif
assignedBuffer
and
not
bufferLogged
:
self
.
util
.
logVerbose
(
'
Buffer destination existing for run %d: %s
'
%
(
runID
,
assignedBuffer
)
)
# # Find out if the replication is necessary
assignedSE
=
[
assignedRAW
,
assignedBuffer
]
if
assignedBuffer
else
[
assignedRAW
]
if
not
updated
:
updated
=
True
res
=
self
.
transClient
.
setTransformationRunsSite
(
self
.
transID
,
runID
,
'
,
'
.
join
(
assignedSE
)
)
if
not
res
[
'
OK
'
]:
self
.
util
.
logError
(
"
Failed to assign TransformationRun SE
"
,
res
[
'
Message
'
]
)
return
res
ses
=
sorted
(
set
(
assignedSE
)
-
replicaSE
)
# Update the counters as we know the number of files
if
assignedRAW
in
ses
:
# Here we pass both the number of files and the runID as we can use either metrics
self
.
util
.
updateSharesUsage
(
existingCount
,
assignedRAW
,
len
(
lfns
),
runID
)
assignedSE
=
'
,
'
.
join
(
ses
)
assignedSE
=
[]
if
assignedRAW
:
assignedSE
.
append
(
assignedRAW
)
if
assignedBuffer
:
assignedSE
.
append
(
assignedBuffer
)
if
assignedSE
:
if
not
updated
:
updated
=
True
res
=
self
.
transClient
.
setTransformationRunsSite
(
self
.
transID
,
runID
,
'
,
'
.
join
(
assignedSE
)
)
if
not
res
[
'
OK
'
]:
self
.
util
.
logError
(
"
Failed to assign TransformationRun SE
"
,
res
[
'
Message
'
]
)
return
res
ses
=
sorted
(
set
(
assignedSE
)
-
replicaSE
)
# Update the counters as we know the number of files
if
assignedRAW
in
ses
:
# Here we pass both the number of files and the runID as we can use either metrics
self
.
util
.
updateSharesUsage
(
existingCount
,
assignedRAW
,
len
(
lfns
),
runID
)
assignedSE
=
'
,
'
.
join
(
ses
)
self
.
util
.
logVerbose
(
'
Creating a task (%d files, run %d) for SEs %s
'
%
(
len
(
lfns
),
runID
,
assignedSE
)
)
tasks
.
append
(
(
assignedSE
,
lfns
)
)
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment