Exemplo n.º 1
0
class ServerOptions(usage.Options):
    optParameters = [
        ['worker-listen', 'w', '', "workers listen address"],
        ['worker-port', '', 7888, "workers port number"],
        ['rpc-listen', 'r', '', "RPC listen address"],
        ['rpc-port', '', 7889, "RPC listen port"],
        ['database', 'db', 'sioworkersd.db', "database file path"],
        ['scheduler', 's',
         getDefaultSchedulerClassName(), "scheduler class"],
    ]
Exemplo n.º 2
0
class ServerOptions(usage.Options):
    optParameters = [
        ['worker-listen', 'w', '', "workers listen address"],
        ['worker-port', '', 7888, "workers port number"],
        ['rpc-listen', 'r', '', "RPC listen address"],
        ['rpc-port', '', 7889, "RPC listen port"],
        ['database', 'db', 'sioworkersd.db', "database file path"],
        ['scheduler', 's',
         getDefaultSchedulerClassName(), "scheduler class"],
        [
            'max-task-ram', '', 2048,
            "maximum task required RAM (in MiB) allowed by the scheduler"
        ]
    ]
Exemplo n.º 3
0
def testDefaultSchedulerExistence():
    module_name, class_name = getDefaultSchedulerClassName() \
                                  .rsplit('.', 1)
    # can throw ImportError and fail test
    module = importlib.import_module(module_name)
    assert hasattr(module, class_name)
Exemplo n.º 4
0
def testDefaultSchedulerExistence():
    module_name, class_name = getDefaultSchedulerClassName() \
                                  .rsplit('.', 1)
    # can throw ImportError and fail test
    module = importlib.import_module(module_name)
    assert hasattr(module, class_name)