From a0e59b7285d264fdbe554754ce25f9d3f545efda Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Mon, 15 Jul 2024 09:13:59 -0700 Subject: [PATCH] fixed docs and removed unneeded comments --- docs/core-concepts/Crews.md | 4 ++-- src/crewai/crew.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/core-concepts/Crews.md b/docs/core-concepts/Crews.md index 43c190573..b1b0339fb 100644 --- a/docs/core-concepts/Crews.md +++ b/docs/core-concepts/Crews.md @@ -158,9 +158,9 @@ for async_result in async_results: ### Replaying from specific task: You can now replay from a specific task using our cli command replay. -The replay_from_tasks feature in CrewAI allows you to replay from a specific task using the command-line interface (CLI). By running the command `crewai replay -t `, you can specify the task name for the replay process. +The replay_from_tasks feature in CrewAI allows you to replay from a specific task using the command-line interface (CLI). By running the command `crewai replay -t `, you can specify the `task_id` for the replay process. -Kickoffs will now create a `crew_tasks_ouput.json` file with the output of the tasks which you use to retrieve the task id to replay. +Kickoffs will now save the latest task outputs locally for you to be able to replay from. ### Replaying from specific task Using the CLI diff --git a/src/crewai/crew.py b/src/crewai/crew.py index 2f62bd1ff..018097f3b 100644 --- a/src/crewai/crew.py +++ b/src/crewai/crew.py @@ -755,7 +755,6 @@ class Crew(BaseModel): self, task_id: str, inputs: Optional[Dict[str, Any]] = None ) -> CrewOutput: stored_outputs = self._task_output_handler.load() - # TODO: write tests for this if not stored_outputs: raise ValueError(f"Task with id {task_id} not found in the crew's tasks.")