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