예제 #1
0
파일: __init__.py 프로젝트: ec262/client
def run_job(data, workers = None):
    if workers is None:
        workers = [("localhost", DEFAULT_PORT)]
    f = Foreman()
    f.mapfn = MAPPER
    f.reducefn = REDUCER
    f.datasource = data
    return f.run(workers)