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
Merge requests
!29
Resolve "Initial Publish uptime of CS instance to IS"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Initial Publish uptime of CS instance to IS"
22-initial-publish-uptime-of-cs-instance-to-is
into
master
Overview
26
Commits
25
Pipelines
14
Changes
1
Merged
Jonas Ladefoged Holm
requested to merge
22-initial-publish-uptime-of-cs-instance-to-is
into
master
5 years ago
Overview
16
Commits
25
Pipelines
14
Changes
1
Expand
Closes
#22 (closed)
Edited
5 years ago
by
Jonas Ladefoged Holm
0
0
Merge request reports
Viewing commit
26fd6591
Prev
Next
Show latest version
1 file
+
4
−
4
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
26fd6591
Small changes
· 26fd6591
Jonas
authored
5 years ago
Script/cs/Threads/InfoServiceThread.py
+
4
−
4
Options
@@ -64,14 +64,14 @@ class InfoServiceThread(threading.Thread):
@@ -64,14 +64,14 @@ class InfoServiceThread(threading.Thread):
def
send_update
(
self
):
def
send_update
(
self
):
try
:
try
:
self
.
logger
.
debug
(
"
Getting state from IS
"
)
self
.
logger
.
debug
(
"
Getting state from IS
"
)
data_identifier
=
"
{}.CastorScript
State
"
.
format
(
self
.
conf
.
partition
)
data_identifier
=
"
RunParams.{}.
State
"
.
format
(
self
.
tdaq_app_name
)
cs_state
=
ispy
.
ISInfoDynAny
()
#pylint: disable=no-member
cs_state
=
ispy
.
ISInfoDynAny
()
#pylint: disable=no-member
self
.
is_info_dictionary
.
getValue
(
data_identifier
,
cs_state
)
#
self.is_info_dictionary.getValue(data_identifier, cs_state)
cs_state
.
tdaq_app_name
=
self
.
tdaq_app_name
#
cs_state.tdaq_app_name = self.tdaq_app_name
cs_state
.
uptime_seconds
=
self
.
uptime_seconds
cs_state
.
uptime_seconds
=
self
.
uptime_seconds
keep_history
=
Tru
e
keep_history
=
Fals
e
self
.
is_info_dictionary
.
checkin
(
data_identifier
,
self
.
cs_state
,
keep_history
)
self
.
is_info_dictionary
.
checkin
(
data_identifier
,
self
.
cs_state
,
keep_history
)
self
.
logger
.
debug
(
"
Update sent: %s
"
,
str
(
cs_state
))
self
.
logger
.
debug
(
"
Update sent: %s
"
,
str
(
cs_state
))
Loading