We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7815f8d commit 372e668Copy full SHA for 372e668
packages/service-library/src/servicelib/long_running_tasks/task.py
@@ -60,6 +60,7 @@ def __name__(self) -> str: ...
60
class TaskRegistry:
61
REGISTERED_TASKS: ClassVar[dict[RegisteredTaskName, TaskProtocol]] = {}
62
63
+ # TODO: maybe only use one method to register
64
@classmethod
65
def register(cls, task: TaskProtocol) -> None:
66
cls.REGISTERED_TASKS[task.__name__] = task
0 commit comments