Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Schwieger, Jana
lab-stream
Commits
daf48e2e
Commit
daf48e2e
authored
Apr 25, 2021
by
Schwieger, Jana
Browse files
Job Trigger
parent
87f734c7
Pipeline
#41146
passed with stages
in 1 minute and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messaging/pubsub-consumer.py
View file @
daf48e2e
...
...
@@ -17,5 +17,5 @@ for msg in ch.listen():
latency
=
(
r
-
data
[
'timestamp'
])
/
1000
/
1000
print
(
f
"
{
latency
:.
2
f
}
ms | msg:
{
json
.
dumps
(
data
)
}
"
)
except
Exception
as
ex
:
print
(
f
"Could not process message '
{
msg
}
' caused by
{
ex
}
"
)
print
(
f
"Could not process message
:
'
{
msg
}
' caused by
{
ex
}
"
)
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