Verified Commit 4ba7854c authored by Lohse, Felix's avatar Lohse, Felix
Browse files

uebung3

parent 87f734c7
Pipeline #41183 passed with stages
in 40 seconds
......@@ -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():
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.
# print(f"{ since }: { msg }")
print()
print(msg)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment