Skip to content

Worker.add_entity does not provide a way to specify entity name #79

@larohra

Description

@larohra

Currently, there's no way to register an entity with a specific name, it automatically just defaults to the name of the class. I know there's a hacky way around it by changing name, but it would be so much cleaner to have a parameter for it (like they do in dotnet sdk).

Suggestion -

def add_entity(self, fn: task.Entity, entity_name: str = None) -> str:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions