Correctifs pour le commit précédent, et de quoi tester le chaînage.

This commit is contained in:
Pierre-Elliott Bécue 2015-03-10 20:06:18 +01:00
parent 201377528c
commit f228493399
12 changed files with 99 additions and 16 deletions

View file

@ -39,12 +39,11 @@ def ack(ob_id, service_name):
if todo is None:
todo = EventTracker.get_off_record(ob_id)
logger.info("Emptied one list in the chain %r. Trying to continue. Got %r", ob_id, todo)
else:
todo = []
if todo:
for msg in todo:
logger.info("Sending %r on the road \\o/", msg)
# XXX - uncomment this when in production
trigger_send(*msg)
else:
logger.info("Aaaaaand, nothing.")