Isolate plan and task runtime per session
This commit is contained in:
@@ -106,6 +106,11 @@ class PlanRuntime:
|
||||
@classmethod
|
||||
def from_workspace(cls, cwd: Path) -> 'PlanRuntime':
|
||||
storage_path = (cwd.resolve() / DEFAULT_PLAN_RUNTIME_PATH).resolve()
|
||||
return cls.from_storage_path(storage_path)
|
||||
|
||||
@classmethod
|
||||
def from_storage_path(cls, storage_path: Path) -> 'PlanRuntime':
|
||||
storage_path = storage_path.resolve()
|
||||
if not storage_path.exists():
|
||||
return cls(storage_path=storage_path)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user