Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Schultz, Lucian
lab-stream
Commits
dce58837
Commit
dce58837
authored
Apr 26, 2021
by
Schultz, Lucian
Browse files
ue3
parent
7776aebc
Pipeline
#41192
passed with stages
in 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messaging/queueing-consumer.py
View file @
dce58837
...
...
@@ -8,7 +8,7 @@ channel = os.environ.get("CHANNEL", "xqueue")
queue
=
MQueue
(
channel
,
redis
.
Redis
(
host
=
host
,
port
=
port
,
db
=
0
))
for
since
,
msg
in
queue
.
listen
():
for
since
,
msg
in
queue
.
listen
(
since
=
0
):
# We would normally process the messages here.
# However, to avoid overflowing the log we skip message processing.
# You can print the message, if you want.
...
...
Write
Preview
Supports
Markdown
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