Skip to content

Commit

Permalink
add newsfragment and fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsheridan committed Oct 20, 2024
1 parent bd1649e commit 483662f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/source/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ trio-parallel 1.2.0 (2022-10-29)
Features
~~~~~~~~

- The behavior of the default context is now fully configurable, superseding `atexit_shutdown_grace_period` (`#328 <https://github.com/richardsheridan/trio-parallel/issues/328>`__)
- The behavior of the default context is now fully configurable, superseding ``atexit_shutdown_grace_period`` (`#328 <https://github.com/richardsheridan/trio-parallel/issues/328>`__)


Bugfixes
Expand Down Expand Up @@ -131,7 +131,7 @@ Features

- Added configuration options for the grace periods permitted to worker caches upon
shutdown. This includes a new keyword argument for :func:`open_worker_context` and
a new top level function :func:`atexit_shutdown_grace_period`. (`#108 <https://github.com/richardsheridan/trio-parallel/issues/108>`__)
a new top level function ``atexit_shutdown_grace_period``. (`#108 <https://github.com/richardsheridan/trio-parallel/issues/108>`__)
- :func:`open_worker_context` gained a new argument, ``init``, and ``retire`` is no longer
called before the first job in the worker. (`#110 <https://github.com/richardsheridan/trio-parallel/issues/110>`__)

Expand Down
2 changes: 0 additions & 2 deletions docs/source/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ Internal Esoterica

You probably won't use these... but create an issue if you do and need help!

.. autofunction:: atexit_shutdown_grace_period

.. autofunction:: default_context_statistics

.. _cloudpickle: https://github.com/cloudpipe/cloudpickle
Expand Down
1 change: 1 addition & 0 deletions newsfragments/435.removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed deprecated ``atexit_shutdown_grace_period``. Use `configure_default_context` to configure the default context shutdown grace period.
2 changes: 1 addition & 1 deletion trio_parallel/_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BrokenWorkerError(RuntimeError):
failure of either ``trio-parallel`` or the code that was executing in the worker.
Some example failures may include segfaults, being killed by an external signal,
or failing to cleanly shut down within a specified ``grace_period``. (See
:func:`atexit_shutdown_grace_period` and :func:`open_worker_context`.)
:func:`configure_default_context` and :func:`open_worker_context`.)
"""


Expand Down

0 comments on commit 483662f

Please sign in to comment.