Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ajil.k
test
Commits
57152a32
Commit
57152a32
authored
Feb 05, 2025
by
Ajil K
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
key name change
parent
f7e3feee
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
conf/config.yml
conf/config.yml
+1
-1
scripts/constants/app_config.py
scripts/constants/app_config.py
+1
-1
scripts/core/handlers/redundancy_handler.py
scripts/core/handlers/redundancy_handler.py
+1
-2
No files found.
conf/config.yml
View file @
57152a32
...
...
@@ -11,7 +11,7 @@ logger:
primary_device
:
resync_time
:
"
00:15"
heartbeat_interval
:
120
f
ile
s_to_watch
:
C:\\iLens\\ilens-agent\\engine\\acquisition_engine\\conf,C:\\iLens\\ilens-agent\\conf
f
older
s_to_watch
:
C:\\iLens\\ilens-agent\\engine\\acquisition_engine\\conf,C:\\iLens\\ilens-agent\\conf
secondary_device
:
host_ip
:
secondary_device_ip
...
...
scripts/constants/app_config.py
View file @
57152a32
...
...
@@ -17,7 +17,7 @@ class AppConfig:
start_delay_time
=
int
(
config_data
.
get
(
"start_delay_time"
,
0
))
resync_time
=
config_data
.
get
(
"primary_device"
,
{})
.
get
(
"resync_time"
,
"00:15"
)
run_time
=
int
(
config_data
.
get
(
"primary_device"
,
{})
.
get
(
"heartbeat_interval"
,
120
))
files_to_watch
=
config_data
.
get
(
"primary_device"
,
{})
.
get
(
"f
ile
s_to_watch"
,
""
)
files_to_watch
=
config_data
.
get
(
"primary_device"
,
{})
.
get
(
"f
older
s_to_watch"
,
""
)
host_ip
=
config_data
.
get
(
"secondary_device"
,
{})
.
get
(
"host_ip"
,
""
)
port_no
=
int
(
config_data
.
get
(
"secondary_device"
,
{})
.
get
(
"port"
,
8088
))
...
...
scripts/core/handlers/redundancy_handler.py
View file @
57152a32
...
...
@@ -4,7 +4,6 @@ from scripts.constants.app_constants import constants
from
scripts.constants.app_variables
import
DataPool
from
scripts.constants.events
import
events_constants
from
scripts.constants.app_config
import
app_config
from
scripts.logging.logger
import
logger
from
scripts.utilities.common_util
import
common_utilities
from
scripts.utilities.communication_util
import
post_events
from
scripts.utilities.service_util
import
service_operations
...
...
@@ -103,7 +102,7 @@ class RedundancyHandler:
if
app_config
.
is_data_source
:
pipeline_data
=
common_utilities
.
read_configs
(
constants
.
channel_pipeline_path
)
result
[
"pipeline_version"
]
=
self
.
fetch_pipeline_details
(
pipeline_data
)
result
[
"acquisition_status"
]
=
(
service_operations
.
check_ilens_client_status
(
logger
)
and
not
data_quality
)
result
[
"acquisition_status"
]
=
(
service_operations
.
check_ilens_client_status
(
self
.
logger
)
and
not
data_quality
)
return
result
except
Exception
as
e
:
self
.
logger
.
exception
(
f
"Exception occurred while getting response action details - {e}."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment