Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CastorScript
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
atlas-tdaq-software
CastorScript
Commits
b203f340
Commit
b203f340
authored
5 years ago
by
Jonas
Browse files
Options
Downloads
Patches
Plain Diff
Changes
parent
26fd6591
No related branches found
No related tags found
1 merge request
!29
Resolve "Initial Publish uptime of CS instance to IS"
Pipeline
#782120
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Script/cs/Threads/InfoServiceThread.py
+11
-8
11 additions, 8 deletions
Script/cs/Threads/InfoServiceThread.py
with
11 additions
and
8 deletions
Script/cs/Threads/InfoServiceThread.py
+
11
−
8
View file @
b203f340
...
...
@@ -64,15 +64,18 @@ class InfoServiceThread(threading.Thread):
def
send_update
(
self
):
try
:
self
.
logger
.
debug
(
"
Getting state from IS
"
)
data_identifier
=
"
RunParams.{}.State
"
.
format
(
self
.
tdaq_app_name
)
cs_state
=
ispy
.
ISInfoDynAny
()
#pylint: disable=no-member
#self.is_info_dictionary.getValue(data_identifier, cs_state)
#cs_state.tdaq_app_name = self.tdaq_app_name
# Note that we have to specify the type here
cs_state
=
ISObject
(
self
.
ipc_partition
,
"
RunParams.{}.State
"
.
format
(
self
.
tdaq_app_name
),
'
CastorScriptState
'
)
if
cs_state
.
exists
():
cs_state
.
checkout
()
print
cs_state
else
:
print
(
cs_state
.
name
()
+
"
does not exist
"
)
cs_state
.
uptime_seconds
=
self
.
uptime_seconds
keep_history
=
False
self
.
is_info_dictionary
.
checkin
(
data_identifier
,
self
.
cs_state
,
keep_history
)
cs_state
.
checkin
()
self
.
logger
.
debug
(
"
Update sent: %s
"
,
str
(
cs_state
))
except
Exception
as
ex
:
...
...
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