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
374e208e
Commit
374e208e
authored
Mar 03, 2021
by
Nane Kratzke
Browse files
Fix terminate all job
parent
8b00f00b
Changes
1
Hide whitespace changes
Inline
Side-by-side
messaging/queueing-consumer.py
View file @
374e208e
...
...
@@ -8,9 +8,9 @@ channel = os.environ.get("CHANNEL", "xqueue")
queue
=
MQueue
(
channel
,
redis
.
Redis
(
host
=
host
,
port
=
port
,
db
=
0
))
for
since
,
msg
in
queue
.
listen
_as_group
(
"consumers"
):
for
since
,
msg
in
queue
.
listen
(
):
# We would normally process the messages here.
# However, to
not
overflow the log we skip
this here
.
# However, to
avoid
overflow
ing
the log we skip
message processing
.
# You can print the message, if you want.
# print(f"{ since }: { msg }")
print
()
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