Skip to content

Rename BackgroundService's name argument to unique_id #7

@llucax

Description

@llucax

What's needed?

We need to make clear that the name is not just a random name, it should be something to easily identify a particular instance of a class. It seems like users like a lot passing the class name as the name when subclassing, which is pointless as the class name will be included too when using the name (for logging for example).

Proposed solution

Rename name to unique_id, which should give users a better impression what this string should be about.

Use cases

No response

Alternatives and workarounds

No response

Additional context

We'll probably need to update all subclasses forwarding the name argument to super().__init__().

Metadata

Metadata

Assignees

Labels

part:asyncioAffects the asyncio modulescope:breaking-changeBreaking change, users will need to update their codetype:enhancementNew feature or enhancement visitble to users

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions