From ba9f9d05219a276674ac9620b9997da799cd698e Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Sat, 18 May 2024 22:20:36 -0700 Subject: [PATCH] cli: Add set-priority for recursively adjusting a task's priority --- bioluigi/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bioluigi/cli.py b/bioluigi/cli.py index 715b621..f106792 100755 --- a/bioluigi/cli.py +++ b/bioluigi/cli.py @@ -329,3 +329,9 @@ def forgive(task_id, recursive): except requests.exceptions.HTTPError as e: click.echo('Failed to forgive {}: {}'.format(task_id, e), err=True) continue + +@main.command() +@click.argument('task_id') +@click.argument('priority') +def set_priority(task_id, priority): + rpc('add_task', task_id=task_id, priority=priority)