temboardagent/routing.py
def add_worker(name):
    """
    Function decorator for worker name -> worker function mapping.
    """
    def func_wrapper(function):
        global WORKERS
        WORKERS.append({
            'name': name,
            'module': function.__module__,
            'function': function.__name__})
        return function
    return func_wrapper

    Function decorator for worker name -> worker function mapping.
    
Function decorator for worker name -> worker function mapping.
Function decorator for worker name - > worker function mapping .
def add_worker(name):
    def func_wrapper(function):
        global WORKERS
        WORKERS.append({
            'name': name,
            'module': function.__module__,
            'function': function.__name__})
        return function
    return func_wrapper
def add_worker ( name ) : def func_wrapper ( function ) : global WORKERS WORKERS . append ( { 'name' : name , 'module' : function . __module__ , 'function' : function . __name__ } ) return function return func_wrapper
Function decorator for worker name -> worker function mapping.
Function decorator for worker name - > worker function mapping .
"""
    Function decorator for worker name -> worker function mapping.
    """
name