Skip to content

Commit

Permalink
Link the PubSub message id with the bundle. (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexwangcc authored Nov 12, 2019
1 parent 9595a1f commit 39259a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lira/api/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def post(body):
message_id = future.result(
timeout=60
) # Wait 60s for a value to be returned, otherwise raise a timeout error
logger.info(f"Message {message_id} added to topic {topic_name}")
logger.info(
f"Message {message_id} added to topic {topic_name} for bundle {body.get('match')}"
)
return lira_utils.response_with_server_header({"id": message_id}, 200)


Expand All @@ -63,7 +65,7 @@ def receive_messages(body):


def submit_workflow(message):
""" Process messages and submit on-hold workflow in Cromwell."""
"""Process messages and submit on-hold workflow in Cromwell."""
lira_config = current_app.config
data = base64.b64decode(message['data'])
body = json.loads(data)
Expand Down

0 comments on commit 39259a7

Please sign in to comment.