From 6dd5019f23daf1530332b82a06843d35152fb86b Mon Sep 17 00:00:00 2001 From: Theodore Chang <tlcfem@gmail.com> Date: Sat, 22 Jun 2024 19:11:12 +0200 Subject: [PATCH] Add parameters --- nomad/cli/admin/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nomad/cli/admin/run.py b/nomad/cli/admin/run.py index 8307b7476a..5e80c5de8b 100644 --- a/nomad/cli/admin/run.py +++ b/nomad/cli/admin/run.py @@ -35,8 +35,9 @@ def hub(): @run.command(help='Run the nomad development worker.') -def worker(): - run_worker() +@click.option('--workers', type=int, default=None, help='Number of celery workers.') +def worker(**kwargs): + run_worker(**kwargs) @run.command(help='Run the nomad development app with all apis.') -- GitLab