Skip to content
Snippets Groups Projects
Commit 5a773150 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-957: by default, expire message after 5 days

parent 95af0353
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ class LofarMessage:
self.content = content
self.subject = subject
self.priority = priority
self.ttl = ttl
self.ttl = ttl if ttl is not None else 5*24*60*60 # by default, expire message after 5 days.
self.id = uuid.uuid4() if id is None else uuid.UUID(id)
def as_kombu_publish_kwargs(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment