Skip to content

Commit

Permalink
fix: TaskWorker needs to implement only consume_work
Browse files Browse the repository at this point in the history
  • Loading branch information
provos committed Aug 31, 2024
1 parent 1586c3a commit 99e52e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/planai/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class TaskWorker(BaseModel, ABC):
_consumers (Dict[Type["TaskWorker"], "TaskWorker"]): A private attribute to store registered consumers.
Note:
Any subclass of TaskWorker must implement both consume_work and publish_work methods.
Any subclass of TaskWorker must implement consume_work.
"""

output_types: Set[Type[TaskWorkItem]] = Field(
Expand Down

0 comments on commit 99e52e5

Please sign in to comment.