コード例 #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)