Skip to content

Commit b27ee6d

Browse files
authored
[Doc] Fix tutos (#2772)
1 parent 42ed42c commit b27ee6d

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/docs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ jobs:
107107
cd ..
108108
109109
# 11. Build doc
110+
export MAX_IDLE_COUNT=180 # Max 180 secs before killing an unresponsive collector
111+
export BATCHED_PIPE_TIMEOUT=180
110112
cd ./docs
111113
# timeout 7m bash -ic "MUJOCO_GL=egl sphinx-build ./source _local_build" || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi
112114
# bash -ic "PYOPENGL_PLATFORM=egl MUJOCO_GL=egl sphinx-build ./source _local_build" || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi

docs/source/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"abort_on_example_error": True,
9898
"show_memory": True,
9999
"capture_repr": ("_repr_html_", "__repr__"), # capture representations
100+
"write_computation_times": True,
100101
}
101102

102103
napoleon_use_ivar = True

tutorials/sphinx-tutorials/coding_ddpg.py

+6
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,12 @@ def ceil_div(x, y):
11851185
collector.shutdown()
11861186
del collector
11871187

1188+
try:
1189+
parallel_env.close()
1190+
del parallel_env
1191+
except Exception:
1192+
pass
1193+
11881194
###############################################################################
11891195
# Experiment results
11901196
# ------------------

tutorials/sphinx-tutorials/coding_dqn.py

+3
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,9 @@ def print_csv_files_in_folder(folder_path):
751751

752752
print_csv_files_in_folder(logger.experiment.log_dir)
753753

754+
trainer.shutdown()
755+
del trainer
756+
754757
###############################################################################
755758
# Conclusion and possible improvements
756759
# ------------------------------------

0 commit comments

Comments
 (0)