Skip to content

Commit 3358a40

Browse files
author
Wu Jianxiao
committed
Add pydracli crash section in tutorial
1 parent af5a169 commit 3358a40

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docs/source/tutorial/3-troubleshooting.ipynb

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"cell_type": "markdown",
142142
"metadata": {},
143143
"source": [
144-
"The error pickle files can be loaded using the `cloudpickle` library, noting that it is\n",
144+
"The error pickle files can be viewed using the `pydracli crash` command, with the possibility of rerunning and debugging the job. Note that it is\n",
145145
"important to use the same Python version to load the files that was used to run the Pydra\n",
146146
"workflow"
147147
]
@@ -152,17 +152,9 @@
152152
"metadata": {},
153153
"outputs": [],
154154
"source": [
155-
"from pydra.utils.general import default_run_cache_root\n",
156-
"import cloudpickle as cp\n",
157-
"from pprint import pprint\n",
158-
"from pydra.tasks.testing import Divide\n",
159-
"\n",
160-
"with open(\n",
161-
" default_run_cache_root / Divide(x=15, y=0)._checksum / \"_error.pklz\", \"rb\"\n",
162-
") as f:\n",
163-
" error = cp.load(f)\n",
155+
"%%bash\n",
164156
"\n",
165-
"pprint(error)"
157+
"pydracli crash _error.pklz --rerun --debugger pdb"
166158
]
167159
},
168160
{

0 commit comments

Comments
 (0)