Beispiel #1
0
def queue_command(retries=0, retry_delay=0):
    if type(retries) == types.FunctionType:
        return _queue_command(invoker)(retries)
    
    def inner(fn):
        return _queue_command(invoker, retries, retry_delay)(fn)
    return inner
Beispiel #2
0
def queue_command(retries=0, retry_delay=0, retries_as_argument=False):
    if type(retries) == types.FunctionType:
        return _queue_command(invoker)(retries)
    
    def inner(fn):
        return _queue_command(invoker, retries, retry_delay, retries_as_argument)(fn)
    return inner
Beispiel #3
0
def queue_command(retries=0, retry_delay=0):
    if type(retries) == types.FunctionType:
        return _queue_command(invoker)(retries)

    def inner(fn):
        return _queue_command(invoker, retries, retry_delay)(fn)

    return inner
Beispiel #4
0
 def inner(fn):
     return _queue_command(invoker, retries, retry_delay)(fn)
Beispiel #5
0
 def inner(fn):
     return _queue_command(invoker, retries, retry_delay)(fn)
Beispiel #6
0
 def inner(fn):
     return _queue_command(invoker, retries, retry_delay, retries_as_argument)(fn)