Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasks Per Worker CLI fix #306

Merged
merged 2 commits into from Jun 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion qcfractal/cli/qcfractal_manager.py
Expand Up @@ -533,7 +533,7 @@ def parse_args():
common.add_argument(
"--adapter", type=str, help="The backend adapter to use, currently only {'dask', 'parsl', 'pool'} are valid.")
common.add_argument(
"--tasks_per_worker",
"--tasks-per-worker",
type=int,
help="The number of simultaneous tasks for the executor to run, resources will be divided evenly.")
common.add_argument("--cores-per-worker", type=int, help="The number of process for each executor's Workers")
Expand Down
4 changes: 2 additions & 2 deletions qcfractal/cli/tests/test_cli.py
Expand Up @@ -42,12 +42,12 @@ def active_server(request):

@testing.mark_slow
def test_manager_local_testing_process():
assert testing.run_process(["qcfractal-manager", "--adapter=pool", "--test", "--tasks_per_worker=2"], **_options)
assert testing.run_process(["qcfractal-manager", "--adapter=pool", "--test", "--tasks-per-worker=2"], **_options)


@testing.mark_slow
def test_manager_executor_manager_boot(active_server):
args = ["qcfractal-manager", active_server.test_uri_cli, "--adapter=pool", "--tasks_per_worker=2", "--verify=False"]
args = ["qcfractal-manager", active_server.test_uri_cli, "--adapter=pool", "--tasks-per-worker=2", "--verify=False"]
assert testing.run_process(args, interupt_after=7, **_options)


Expand Down