Skip to content

Commit

Permalink
Adding cache file name resolution to the task's
Browse files Browse the repository at this point in the history
* This makes it easier to determine what the path should be for each
  task, as tasks have more and more divergent data
* Removes the cache overwrite for SymbolNotFound and
  PackageDoesNotExistErrors
* Adds the depth to file tree to see effort level at work.
* In the future we should consider enhancing this, so that tasks can add
  data to the trace to make debugging even easier

Signed-off-by: Shawn Hurley <shawn@hurley.page>
  • Loading branch information
shawn-hurley committed Feb 14, 2025
1 parent 8f884eb commit 389283a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kai/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ def _path_with_limit(self, root: Optional[Task], path: Path) -> Path:
if len(str(path)) > self._limit and root is not None:
root_path = root.get_cache_path(Path("."))
task_path = self.task.get_cache_path(Path("."))

return root_path.parent / task_path / path.name
return path

Expand Down

0 comments on commit 389283a

Please sign in to comment.