Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Split the actual processing of messages out
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
  • Loading branch information
puiterwijk authored and sayanchowdhury committed Nov 28, 2018
1 parent 6585430 commit 11b1f57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fedimg/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ def consume(self, msg):

cancel_stale_conversion_tasks()

location = msg_info['location']
compose_id = msg_info['compose_id']
self.process_compose(msg_info['location'], msg_info['compose_id'])

def process_compose(self, location, compose_id):
try:
compose_metadata = fedfind.release.get_release(
cid=compose_id).metadata
Expand Down

0 comments on commit 11b1f57

Please sign in to comment.