Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FofbTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
DG
FOFB
FofbTool
Commits
88268181
Commit
88268181
authored
1 year ago
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
fix: Check FofbIsRunning before running Utils method
parent
a225ba68
Branches
dev_rcm
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FofbTool/Utils.py
+10
-0
10 additions, 0 deletions
FofbTool/Utils.py
with
10 additions
and
0 deletions
FofbTool/Utils.py
+
10
−
0
View file @
88268181
...
@@ -38,8 +38,13 @@ tangopath.update(tangopath_nodes)
...
@@ -38,8 +38,13 @@ tangopath.update(tangopath_nodes)
def
init_opcua
():
def
init_opcua
():
"""
"""
Run init on all OPCUA devices. Catch DevFailed and inform via log.
Run init on all OPCUA devices. Catch DevFailed and inform via log.
Does nothing if Fofb is running.
"""
"""
if
not
check_fofbnotrunning
():
logger
.
warning
(
"
Not running configuration of combpm because FOFB seems to be running.
"
)
return
for
i
,(
n
,
p
)
in
enumerate
(
tangopath_nodes
.
items
()):
for
i
,(
n
,
p
)
in
enumerate
(
tangopath_nodes
.
items
()):
logger
.
info
(
"
Perform init() on {}
'
{}
'"
.
format
(
n
,
p
))
logger
.
info
(
"
Perform init() on {}
'
{}
'"
.
format
(
n
,
p
))
try
:
try
:
...
@@ -51,8 +56,13 @@ def init_opcua():
...
@@ -51,8 +56,13 @@ def init_opcua():
def
init_watcher
():
def
init_watcher
():
"""
"""
Run init on Fofb-Watcher, waiting for its completion then init on the FofbCommand.
Run init on Fofb-Watcher, waiting for its completion then init on the FofbCommand.
Does nothing if Fofb is running.
"""
"""
if
not
check_fofbnotrunning
():
logger
.
warning
(
"
Not running configuration of combpm because FOFB seems to be running.
"
)
return
try
:
try
:
wprx
=
tango
.
DeviceProxy
(
tangopath
[
"
fofb-watcher
"
])
wprx
=
tango
.
DeviceProxy
(
tangopath
[
"
fofb-watcher
"
])
wprx
.
set_timeout_millis
(
30000
)
wprx
.
set_timeout_millis
(
30000
)
...
...
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