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
Gabrecht, Marco
lab-stream
Commits
cbe73426
Commit
cbe73426
authored
Apr 26, 2021
by
Gabrecht, Marco
Browse files
1
parent
4ae555d4
Pipeline
#41181
passed with stages
in 1 minute and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messaging/queueing-consumer.py
View file @
cbe73426
...
...
@@ -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
(
since
=
0
):
for
since
,
msg
in
queue
.
listen
(
since
=
1614769663096
):
# 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
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