Skip to content

Celery task naming #28

@aitor-perez-epfl

Description

@aitor-perez-epfl

I found out that naming celery tasks with more than one dot breaks the function route_task in the celery_config.py file:

File "/Users/hera/graphai/graphai/core/celery_utils/celery_config.py", line 8, in route_task
    queue, _ = name.split(".")
ValueError: too many values to unpack (expected 2)

I was trying to use task names like text.wikify.extract_keywords. We should either fix this function to accept this kind of names or define a different task naming convention which makes sense.

What do you think @RamtinYazdanian?

Metadata

Metadata

Labels

brainstormGeneral discussionquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions