Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
gstlal
Commits
7a6e8f65
Commit
7a6e8f65
authored
Oct 17, 2019
by
Madeline Wade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving kafka import into check for if kafka server is set
parent
9da8b4aa
Pipeline
#84390
passed with stages
in 37 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gstlal-calibration/python/calibhandler.py
gstlal-calibration/python/calibhandler.py
+1
-1
No files found.
gstlal-calibration/python/calibhandler.py
View file @
7a6e8f65
...
...
@@ -35,7 +35,6 @@ Gst.init(None)
from
gstlal
import
simplehandler
from
lal
import
LIGOTimeGPS
from
kafka
import
errors
#
# =============================================================================
...
...
@@ -74,6 +73,7 @@ class Handler(simplehandler.Handler):
self
.
kafka_server
=
kafka_server
if
self
.
kafka_server
is
not
None
:
from
kafka
import
KafkaProducer
from
kafka
import
errors
try
:
self
.
producer
=
KafkaProducer
(
bootstrap_servers
=
[
self
.
kafka_server
],
...
...
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