Skip to content

Commit

Permalink
cli: Add set-priority for recursively adjusting a task's priority
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed May 19, 2024
1 parent f9c05e5 commit ba9f9d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bioluigi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ba9f9d0

Please sign in to comment.