Skip to content

Commit 7418345

Browse files
committed
debugging test_environments
1 parent 1f9e0df commit 7418345

File tree

2 files changed

+211
-231
lines changed

2 files changed

+211
-231
lines changed

pydra/engine/specs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,14 @@ def errors(self):
654654
return cp.load(f)
655655
return None
656656

657+
@property
658+
def task(self):
659+
task_pkl = self.output_dir / "_task.pklz"
660+
if not task_pkl.exists():
661+
return None
662+
with open(task_pkl, "rb") as f:
663+
return cp.load(f)
664+
657665

658666
@attrs.define(kw_only=True)
659667
class RuntimeSpec:

0 commit comments

Comments
 (0)