Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
1752a2e5
Commit
1752a2e5
authored
1 year ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
SW-1013
: removed obsolete imports
parent
217e31a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MAC/Services/TBB/TBBServer/lib/tbbservice.py
+0
-1
0 additions, 1 deletion
MAC/Services/TBB/TBBServer/lib/tbbservice.py
MAC/Services/src/pipelinecontrol/pipelinecontrol
+8
-10
8 additions, 10 deletions
MAC/Services/src/pipelinecontrol/pipelinecontrol
with
8 additions
and
11 deletions
MAC/Services/TBB/TBBServer/lib/tbbservice.py
+
0
−
1
View file @
1752a2e5
...
...
@@ -37,7 +37,6 @@ from lofar.mac.tbbservice.config import *
from
lofar.common.lcu_utils
import
*
from
lofar.common.cep4_utils
import
*
from
lofar.common.subprocess_utils
import
communicate_returning_strings
from
lofar.sas.otdb.otdbrpc
import
OTDBRPC
from
lofar.mac.tbb.tbb_load_firmware
import
load_tbb_firmware
from
lofar.mac.tbb.tbb_freeze
import
freeze_tbb
from
lofar.mac.tbb.tbb_release_recording
import
release_tbb
...
...
This diff is collapsed.
Click to expand it.
MAC/Services/src/pipelinecontrol/pipelinecontrol
+
8
−
10
View file @
1752a2e5
...
...
@@ -21,7 +21,7 @@
# $Id: JobsToSchedule.py 33364 2016-01-21 21:21:12Z mol $
import
logging
from
lofar.mac.PipelineControl
import
PipelineControl
,
PipelineControlTMSS
,
PipelineControlServiceHandler
from
lofar.mac.PipelineControl
import
PipelineControlTMSS
,
PipelineControlServiceHandler
from
lofar.messaging
import
RPCService
,
DEFAULT_BROKER
,
DEFAULT_BUSNAME
from
lofar.common.util
import
waitForInterrupt
import
lofar.mac.config
as
config
...
...
@@ -52,13 +52,11 @@ if __name__ == "__main__":
from
lofar.sas.tmss.client.tmss_http_rest_client
import
TMSSsession
TMSSsession
.
check_connection_and_exit_on_error
(
options
.
tmss_client_credentials_id
)
# todo: Do we want to run OTDB and TMSS in parallel?
with
PipelineControl
(
exchange
=
options
.
exchange
,
broker
=
options
.
broker
)
as
pipelineControl
:
with
PipelineControlTMSS
(
exchange
=
options
.
exchange
,
broker
=
options
.
broker
,
handler_kwargs
=
{
'
tmss_client_credentials_id
'
:
options
.
tmss_client_credentials_id
})
as
pipelineControlTMSS
:
with
RPCService
(
service_name
=
config
.
DEFAULT_PIPELINE_CONTROL_SERVICE_NAME
,
handler_type
=
PipelineControlServiceHandler
,
broker
=
options
.
broker
,
exchange
=
options
.
exchange
):
waitForInterrupt
()
with
PipelineControlTMSS
(
exchange
=
options
.
exchange
,
broker
=
options
.
broker
,
handler_kwargs
=
{
'
tmss_client_credentials_id
'
:
options
.
tmss_client_credentials_id
})
as
pipelineControlTMSS
:
with
RPCService
(
service_name
=
config
.
DEFAULT_PIPELINE_CONTROL_SERVICE_NAME
,
handler_type
=
PipelineControlServiceHandler
,
broker
=
options
.
broker
,
exchange
=
options
.
exchange
):
waitForInterrupt
()
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