Skip to content

Commit 961b0a9

Browse files
authored
do one final save before exiting
The periodic save will probably not correspond with the exit time.
1 parent 13f6b33 commit 961b0a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/source/tutorial/tutorial.parallelism.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ For example, you create the following file called ``run_learner.py``:
8484
# block until runner goal reached
8585
runner.ioloop.run_until_complete(runner.task)
8686
87+
# save one final time before exiting
88+
learner.save(fname)
89+
8790
8891
On your laptop/desktop you can run this script like:
8992

0 commit comments

Comments
 (0)