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

@ -81,7 +81,7 @@ def record_service(ack=True):
# The function does not return.
func(*args, **kwargs)
LOGGER.debug("[%r] Ran %r on (%r, %r)", __ob_id, func.func_name, args, kwargs, )
LOGGER.debug("[%r] Ran %r on (%r, %r)", __ob_id, func.func_name, args, kwargs,)
if ack:
# We send directly with routing key trigger.ack on the way.
@ -125,6 +125,7 @@ def chaining(pos):
def add_pos(func):
"""Adds the chaining_pos variable to func"""
LOGGER.debug("%r chaining pos : %r", func.func_name, pos)
setattr(func, "chaining_pos", pos)
return func