Skip to content

Commit

Permalink
rename queues to tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Jul 3, 2024
1 parent 233f716 commit 88ccd94
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/anemoi/registry/commands/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def run(self, args):
raise ValueError("Invalid API path {path}")

_, collection, *_ = path.split("/")
if collection not in ("datasets", "experiments", "weights", "queues"):
if collection not in ("datasets", "experiments", "weights", "tasks"):
LOG.warning(f"Unknown collection {collection}")

if args.edit:
Expand Down
2 changes: 1 addition & 1 deletion src/anemoi/registry/commands/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _run_default(self, args):
print(json_pretty_dump(payload))

def run_tasks(self, args):
collection = "queues"
collection = "tasks"
request = list_to_dict(args.filter)
data = RestItemList(collection).get(params=request)
self.print_tasks(data, long=args.long, sort=args.sort)
Expand Down
2 changes: 1 addition & 1 deletion src/anemoi/registry/commands/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Tasks(BaseCommand):
timestamp = True
entry_class = TaskCatalogueEntry

collection = "queues"
collection = "tasks"

def add_arguments(self, command_parser):
command_parser.add_argument("TASK", help="The uuid of the task", nargs="?")
Expand Down
2 changes: 1 addition & 1 deletion src/anemoi/registry/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def actor_factory(**record):


class TaskCatalogueEntry(CatalogueEntry):
collection = "queues"
collection = "tasks"
main_key = "uuid"

def to_actor(self):
Expand Down

0 comments on commit 88ccd94

Please sign in to comment.