| 1 |
4.3.0 - 2026-09-26 |
| 2 |
------------------ |
| 3 |
- Propagate MemoryError from pool callbacks |
| 4 |
- Propagate `BaseException` raised in pool workers instead of raising |
| 5 |
`WorkerLostError` (#427) |
| 6 |
- Bind the closerange-based close_open_fds() on Python 3 |
| 7 |
- List the fd directory in close_open_fds() instead of walking the limit (#456) |
| 8 |
- Exit the pool worker after a task raises `SystemExit` or `KeyboardInterrupt` |
| 9 |
(for example the SIGTERM sent by a hard time limit) instead of returning to |
| 10 |
the shared inqueue, which left the blocking pool stalled once the worker was |
| 11 |
killed while holding the inqueue lock (regression from #452) |
| 12 |
|
| 13 |
|
| 14 |
4.3.0rc1 - 2026-02-26 |
| 15 |
-------------------- |
| 16 |
- Fix pytest deprecation warning (#440) |
| 17 |
- Make einfo compatible with inspect (fixes #176) (#392) |
| 18 |
- Update CI workflow to use Python 3.10 and above (#441) |
| 19 |
- Update tox.ini to remove older Python versions (#442) |
| 20 |
- Fix macOS fork-safety crash: default to spawn on darwin (#443) |
| 21 |
- Prepare for (pre) release: v4.3.0rc1 (#445) |
| 22 |
|
| 23 |
|
| 24 |
4.2.4 - 2025-11-30 |
| 25 |
-------------------- |
| 26 |
- Eliminate usage of 'return' in 'finally' blocks (#438) |
| 27 |
- Prepare for release: v4.2.4 (#439) |
| 28 |
|
| 29 |
4.2.3 - 2025-11-16 |
| 30 |
-------------------- |
| 31 |
- Ensure that task results are delivered during pool shutdown (#435) |
| 32 |
- Prepare for release: v4.2.3 (#436) |
| 33 |
|
| 34 |
4.2.2 - 2025-09-20 |
| 35 |
-------------------- |
| 36 |
- Add codespell support (config, workflow to detect/not fix) and make it fix few typos |
| 37 |
- initial python 3.13 support |
| 38 |
- Copy `code.co_qualname` on Python >= 3.11 |
| 39 |
- Added DeepWiki to README |
| 40 |
- Fix the failing pre-commit.ci job |
| 41 |
- GitHub Actions: Test on Python 3.14 release candidate 2 |
| 42 |
- Keep GitHub Actions up to date with GitHub's Dependabot |
| 43 |
- Bump the github-actions group with 2 updates |
| 44 |
- Prepare for release: v4.2.2 |
| 45 |
|
| 46 |
4.2.1 - 2024-09-21 |
| 47 |
-------------------- |
| 48 |
- Remove `SIGUSR2` from `TERMSIGS_DEAULT` |
| 49 |
- Add on_ready_counter to Worker.__reduce__. |
| 50 |
- Adapt for logging lock internal changes in Python3.13 |
| 51 |
- blacksmith.sh: Migrate workflows to blacksmith |
| 52 |
- Prepare for release: v4.2.1 |
| 53 |
|
| 54 |
4.2.0 - 2023-11-06 |
| 55 |
-------------------- |
| 56 |
- Update process.py to close during join only if process has completed. |
| 57 |
- Adjust the __repr__ in ApplyResult. |
| 58 |
- Remove python 3.7 from CI. |
| 59 |
- Added Python 3.12 support. |
| 60 |
- Fixed (co_positions): resolve issue caused by absence co_positions (#395). |
| 61 |
- Fixed: Replaced mktemp usage for Python 3 from python 2. |
| 62 |
- Changed nose test to pytest (#397) in Integration test. |
| 63 |
- Changed nose dependency for unit test (#383). |
| 64 |
|
| 65 |
|
| 66 |
4.1.0 - 2022-12-14 |
| 67 |
-------------------- |
| 68 |
- Fixed a python 2 to 3 compat issue which was missed earlier (#374). |
| 69 |
- Adde Python 3.11 primary support |
| 70 |
|
| 71 |
4.0.2 - 2022-08-03 |
| 72 |
-------------------- |
| 73 |
- ExceptionWithTraceback should be an exception. |
| 74 |
|
| 75 |
4.0.1 - 2022-08-01 |
| 76 |
-------------------- |
| 77 |
- Add support for Python 3.11 _posixsubprocess.fork_exec() arguments. |
| 78 |
- Keep exception traceback somehow (#368). |
| 79 |
|
| 80 |
|
| 81 |
4.0.0 - 2022-04-24 |
| 82 |
-------------------- |
| 83 |
- Support Sphinx 4.x. |
| 84 |
- Remove dependency to case. |
| 85 |
- Drop support of Python < 3.7. |
| 86 |
- Update to psutil 5.9.0. |
| 87 |
- Add python_requires to enforce Python version. |
| 88 |
- Replace deprecated threading Event.isSet with Event.is_set. |
| 89 |
- Prevent segmentation fault in get_pdeathsig while using ctypes (#361). |
| 90 |
- Migrated CI to Github actions. |
| 91 |
- Python 3.10 support added. |
| 92 |
|
| 93 |
|
| 94 |
3.6.4.0 - 2021-04-01 |
| 95 |
-------------------- |
| 96 |
- Issue #309: Add Python 3.9 support to spawnv_passfds() |
| 97 |
- fix #314 |
| 98 |
|
| 99 |
3.6.1 - 2019-08-14 |
| 100 |
-------------------- |
| 101 |
|
| 102 |
- Logging max memory reached at INFO rather than WARNING (#255) |
| 103 |
|
| 104 |
- Pass arguments when wrapping sys.exit (#275) |
| 105 |
|
| 106 |
- Remove win32/py2k special (#276) |
| 107 |
|
| 108 |
- Ensure READY messages sent out by exiting worker are consumed prior to it actually existing. |
| 109 |
|
| 110 |
- Pass max_memory_per_child to child worker process (#251) |
| 111 |
|
| 112 |
- Fix compatibility with Python 2.7 on Windows (#283) |
| 113 |
|
| 114 |
3.6.0.0 - 2019-02-04 |
| 115 |
-------------------- |
| 116 |
|
| 117 |
- Add support of sending parent process death signal. |
| 118 |
|
| 119 |
- Previous fix for handling timeouts caused a problem in warm shutdowns due |
| 120 |
to use of deepcopy. |
| 121 |
|
| 122 |
We now use a shallow copy of the cache and do so only when it is needed. |
| 123 |
|
| 124 |
- Cleanup old checks and workarounds for Python versions we no longer support. |
| 125 |
|
| 126 |
3.5.0.5 - 2018-12-03 |
| 127 |
-------------------- |
| 128 |
|
| 129 |
- Fix a crash when handling a timeout. |
| 130 |
- Improve billiard.einfo.Frame compatibility with Python to avoid crashes when using Django. |
| 131 |
- Cleanups. |
| 132 |
|
| 133 |
3.5.0.4 - 2018-07-07 |
| 134 |
-------------------- |
| 135 |
|
| 136 |
- Fix rebuild_ctype losing BufferedWrapper reference on Python 3. |
| 137 |
- Deprecation warning with python 3.6 fixed. |
| 138 |
- Correct spawn start method. |
| 139 |
|
| 140 |
3.5.0.3 - 2017-07-16 |
| 141 |
-------------------- |
| 142 |
|
| 143 |
- Adds Process._authkey alias to .authkey for 2.7 compat. |
| 144 |
- Remove superfluous else clause from max_memory_per_child_check. |
| 145 |
- Document and test all supported Python versions. |
| 146 |
- Extend 'Process' to be compatible with < Py3.5. |
| 147 |
- Use a properly initialized logger in pool.py error logging. |
| 148 |
- _trywaitkill can now kill a whole process group if the worker process declares itself as a group leader. |
| 149 |
- Fix cpython issue 14881 (See https://bugs.python.org/issue14881). |
| 150 |
- Fix for a crash on windows. |
| 151 |
- Fix messaging in case of worker exceeds max memory. |
| 152 |
|
| 153 |
3.5.0.2 - 2016-10-03 |
| 154 |
-------------------- |
| 155 |
|
| 156 |
- max_memory_per_child was measured in kilobytes on Linux, but bytes on |
| 157 |
*BSD/MacOS, it's now always kilobytes. |
| 158 |
|
| 159 |
- Windows: Adds support for max_memory_per_child, but requires the |
| 160 |
``psutil`` package to be installed. |
| 161 |
|
| 162 |
- Fixed bug in ForkingPickler.loadbuf, where it tried to pass |
| 163 |
a BytesIO instance directly to ``pickle.loads`` on Python 2.7. |
| 164 |
|
| 165 |
3.5.0.1 - 2016-09-07 |
| 166 |
-------------------- |
| 167 |
|
| 168 |
- Connection: Properly handle EINTR (Issue #191). |
| 169 |
|
| 170 |
- Fixed bug with missing CreateProcess for Windows on Python 2.7. |
| 171 |
|
| 172 |
- Adds Process._counter for compatibility with Python <3.5. |
| 173 |
|
| 174 |
3.5.0.0 - 2016-07-28 |
| 175 |
-------------------- |
| 176 |
|
| 177 |
- No longer supports Python 2.6 |
| 178 |
|
| 179 |
You need Python 2.7 or later to use this version of billiard. |
| 180 |
|
| 181 |
- Merged changes from CPython 3.5 |
| 182 |
|
| 183 |
3.3.0.20 - 2015-04-17 |
| 184 |
--------------------- |
| 185 |
|
| 186 |
- Pool: Timeouts will attempt to send SIGKILL, but this signal |
| 187 |
does not exist on Windows. Replaced with SIGTERM. |
| 188 |
|
| 189 |
3.3.0.19 - 2014-10-13 |
| 190 |
--------------------- |
| 191 |
|
| 192 |
- Pool: Exceptions in user timeout callbacks are now logged instead |
| 193 |
of crashing the pool. |
| 194 |
|
| 195 |
Contributed by Pierre Fersing. |
| 196 |
|
| 197 |
- Pool: Exit codes in errors were improperly being represented as signals. |
| 198 |
|
| 199 |
- Pool: ``.map``. and ``.imap`` now working again. |
| 200 |
|
| 201 |
- Now builds on FreeBSD 10. |
| 202 |
|
| 203 |
Contributed by Michael Fladischer. |
| 204 |
|
| 205 |
3.3.0.18 - 2014-06-20 |
| 206 |
--------------------- |
| 207 |
|
| 208 |
- Now compiles on GNU/kFreeBSD |
| 209 |
|
| 210 |
Contributed by Michael Fladischer. |
| 211 |
|
| 212 |
- Pool: `AF_PIPE` address fixed so that it works on recent Windows versions |
| 213 |
in combination with Python 2.7.7. |
| 214 |
|
| 215 |
Fix contributed by Joshua Tacoma. |
| 216 |
|
| 217 |
- Pool: Fix for `Supervisor object has no attribute _children` error. |
| 218 |
|
| 219 |
Fix contributed by Andres Riancho. |
| 220 |
|
| 221 |
- Pool: Fixed bug with human_status(None). |
| 222 |
|
| 223 |
- Pool: shrink did not work properly if asked to remove more than 1 process. |
| 224 |
|
| 225 |
|
| 226 |
3.3.0.17 - 2014-04-16 |
| 227 |
--------------------- |
| 228 |
|
| 229 |
- Fixes SemLock on Python 3.4 (Issue #107) when using |
| 230 |
``forking_enable(False)``. |
| 231 |
|
| 232 |
- Pool: Include more useful exitcode information when processes exit. |
| 233 |
|
| 234 |
3.3.0.16 - 2014-02-11 |
| 235 |
--------------------- |
| 236 |
|
| 237 |
- Previous release was missing the billiard.py3 package from MANIFEST |
| 238 |
so the installation would not work on Python 3. |
| 239 |
|
| 240 |
3.3.0.15 - 2014-02-10 |
| 241 |
--------------------- |
| 242 |
|
| 243 |
- Pool: Fixed "cannot join process not started" error. |
| 244 |
|
| 245 |
- Now uses billiard.py2 and billiard.py3 specific packages that are installed |
| 246 |
depending on the python version used. |
| 247 |
|
| 248 |
This way the installation will not import version specific modules (and |
| 249 |
possibly crash). |
| 250 |
|
| 251 |
3.3.0.14 - 2014-01-17 |
| 252 |
--------------------- |
| 253 |
|
| 254 |
- Fixed problem with our backwards compatible ``bytes`` wrapper |
| 255 |
(Issue #103). |
| 256 |
|
| 257 |
- No longer expects frozen applications to have a valid ``__file__`` |
| 258 |
attribute. |
| 259 |
|
| 260 |
Fix contributed by George Sibble. |
| 261 |
|
| 262 |
3.3.0.13 - 2013-12-13 |
| 263 |
--------------------- |
| 264 |
|
| 265 |
- Fixes compatibility with Python < 2.7.6 |
| 266 |
|
| 267 |
- No longer attempts to handle ``SIGBUS`` |
| 268 |
|
| 269 |
Contributed by Vishal Vatsa. |
| 270 |
|
| 271 |
- Non-thread based pool now only handles signals: |
| 272 |
|
| 273 |
``SIGHUP``, ``SIGQUIT``, ``SIGTERM``, ``SIGUSR1``, |
| 274 |
``SIGUSR2``. |
| 275 |
|
| 276 |
- setup.py: Only show compilation warning for build related commands. |
| 277 |
|
| 278 |
3.3.0.12 - 2013-12-09 |
| 279 |
--------------------- |
| 280 |
|
| 281 |
- Fixed installation for Python 3. |
| 282 |
|
| 283 |
Contributed by Rickert Mulder. |
| 284 |
|
| 285 |
- Pool: Fixed bug with maxtasksperchild. |
| 286 |
|
| 287 |
Fix contributed by Ionel Cristian Maries. |
| 288 |
|
| 289 |
- Pool: Fixed bug in maintain_pool. |
| 290 |
|
| 291 |
3.3.0.11 - 2013-12-03 |
| 292 |
--------------------- |
| 293 |
|
| 294 |
- Fixed Unicode error when installing the distribution (Issue #89). |
| 295 |
|
| 296 |
- Daemonic processes are now allowed to have children. |
| 297 |
|
| 298 |
But note that it will not be possible to automatically |
| 299 |
terminate them when the process exits. |
| 300 |
|
| 301 |
See discussion at https://github.com/celery/celery/issues/1709 |
| 302 |
|
| 303 |
- Pool: Would not always be able to detect that a process exited. |
| 304 |
|
| 305 |
|
| 306 |
3.3.0.10 - 2013-12-02 |
| 307 |
--------------------- |
| 308 |
|
| 309 |
- Windows: Fixed problem with missing ``WAITABANDONED_0`` |
| 310 |
|
| 311 |
Fix contributed by Matthias Wagner |
| 312 |
|
| 313 |
- Windows: PipeConnection can now be inherited. |
| 314 |
|
| 315 |
Fix contributed by Matthias Wagner |
| 316 |
|
| 317 |
3.3.0.9 - 2013-12-02 |
| 318 |
-------------------- |
| 319 |
|
| 320 |
- Temporary workaround for Celery maxtasksperchild issue. |
| 321 |
|
| 322 |
Fix contributed by Ionel Cristian Maries. |
| 323 |
|
| 324 |
3.3.0.8 - 2013-11-21 |
| 325 |
-------------------- |
| 326 |
|
| 327 |
- Now also sets ``multiprocessing.current_process`` for compatibility |
| 328 |
with loggings ``processName`` field. |
| 329 |
|
| 330 |
3.3.0.7 - 2013-11-15 |
| 331 |
-------------------- |
| 332 |
|
| 333 |
- Fixed compatibility with PyPy 2.1 + 2.2. |
| 334 |
|
| 335 |
- Fixed problem in pypy detection. |
| 336 |
|
| 337 |
Fix contributed by Tin Tvrtkovic. |
| 338 |
|
| 339 |
- Now uses ``ctypes.find_library`` instead of hardcoded path to find |
| 340 |
the macOS CoreServices framework. |
| 341 |
|
| 342 |
Fix contributed by Moritz Kassner. |
| 343 |
|
| 344 |
|
| 345 |
3.3.0.6 - 2013-11-12 |
| 346 |
-------------------- |
| 347 |
|
| 348 |
- Now works without C extension again. |
| 349 |
|
| 350 |
- New ``_billiard.read(fd, buffer, [len, ])`` function |
| 351 |
implements os.read with buffer support (new buffer API) |
| 352 |
|
| 353 |
- New pure-python implementation of ``Connection.send_offset``. |
| 354 |
|
| 355 |
3.3.0.5 - 2013-11-11 |
| 356 |
-------------------- |
| 357 |
|
| 358 |
- All platforms except for Windows/PyPy/Jython now requires the C extension. |
| 359 |
|
| 360 |
3.3.0.4 - 2013-11-11 |
| 361 |
-------------------- |
| 362 |
|
| 363 |
- Fixed problem with Python3 and setblocking. |
| 364 |
|
| 365 |
3.3.0.3 - 2013-11-09 |
| 366 |
-------------------- |
| 367 |
|
| 368 |
- Now works on Windows again. |
| 369 |
|
| 370 |
3.3.0.2 - 2013-11-08 |
| 371 |
-------------------- |
| 372 |
|
| 373 |
- ApplyResult.terminate() may be set to signify that the job |
| 374 |
must not be executed. It can be used in combination with |
| 375 |
Pool.terminate_job. |
| 376 |
|
| 377 |
- Pipe/_SimpleQueue: Now supports rnonblock/wnonblock arguments |
| 378 |
to set the read or write end of the pipe to be nonblocking. |
| 379 |
|
| 380 |
- Pool: Log message included exception info but exception happened |
| 381 |
in another process so the resulting traceback was wrong. |
| 382 |
|
| 383 |
- Pool: Worker process can now prepare results before they are sent |
| 384 |
back to the main process (using ``Worker.prepare_result``). |
| 385 |
|
| 386 |
3.3.0.1 - 2013-11-04 |
| 387 |
-------------------- |
| 388 |
|
| 389 |
- Pool: New ``correlation_id`` argument to ``apply_async`` can be |
| 390 |
used to set a related id for the ``ApplyResult`` object returned: |
| 391 |
|
| 392 |
>>> r = pool.apply_async(target, args, kwargs, correlation_id='foo') |
| 393 |
>>> r.correlation_id |
| 394 |
'foo' |
| 395 |
|
| 396 |
- Pool: New callback `on_process_exit` is called when a pool |
| 397 |
process exits, with signature ``(pid, exitcode)``. |
| 398 |
|
| 399 |
Contributed by Daniel M. Taub. |
| 400 |
|
| 401 |
- Pool: Improved the too many restarts detection. |
| 402 |
|
| 403 |
3.3.0.0 - 2013-10-14 |
| 404 |
-------------------- |
| 405 |
|
| 406 |
- Dual code base now runs on Python 2.6+ and Python 3. |
| 407 |
|
| 408 |
- No longer compatible with Python 2.5 |
| 409 |
|
| 410 |
- Includes many changes from multiprocessing in 3.4. |
| 411 |
|
| 412 |
- Now uses ``time.monotonic`` when available, also including |
| 413 |
fallback implementations for Linux and macOS. |
| 414 |
|
| 415 |
- No longer cleans up after receiving SIGILL, SIGSEGV or SIGFPE |
| 416 |
|
| 417 |
Contributed by Kevin Blackham |
| 418 |
|
| 419 |
- ``Finalize`` and ``register_after_fork`` is now aliases to multiprocessing. |
| 420 |
|
| 421 |
It's better to import these from multiprocessing directly now |
| 422 |
so that there aren't multiple registries. |
| 423 |
|
| 424 |
- New `billiard.queues._SimpleQueue` that does not use semaphores. |
| 425 |
|
| 426 |
- Pool: Can now be extended to support using multiple IPC queues. |
| 427 |
|
| 428 |
- Pool: Can now use async I/O to write to pool IPC queues. |
| 429 |
|
| 430 |
- Pool: New ``Worker.on_loop_stop`` handler can be used to add actions |
| 431 |
at pool worker process shutdown. |
| 432 |
|
| 433 |
Note that, like all finalization handlers, there is no guarantee that |
| 434 |
this will be executed. |
| 435 |
|
| 436 |
Contributed by dmtaub. |
| 437 |
|
| 438 |
2.7.3.30 - 2013-06-28 |
| 439 |
--------------------- |
| 440 |
|
| 441 |
- Fixed ImportError in billiard._ext |
| 442 |
|
| 443 |
2.7.3.29 - 2013-06-28 |
| 444 |
--------------------- |
| 445 |
|
| 446 |
- Compilation: Fixed improper handling of HAVE_SEM_OPEN (Issue #55) |
| 447 |
|
| 448 |
Fix contributed by Krzysztof Jagiello. |
| 449 |
|
| 450 |
- Process now releases logging locks after fork. |
| 451 |
|
| 452 |
This previously happened in Pool, but it was done too late |
| 453 |
as processes logs when they bootstrap. |
| 454 |
|
| 455 |
- Pool.terminate_job now ignores `No such process` errors. |
| 456 |
|
| 457 |
- billiard.Pool entrypoint did not support new arguments |
| 458 |
to billiard.pool.Pool |
| 459 |
|
| 460 |
- Connection inbound buffer size increased from 1kb to 128kb. |
| 461 |
|
| 462 |
- C extension cleaned up by properly adding a namespace to symbols. |
| 463 |
|
| 464 |
- _exit_function now works even if thread wakes up after gc collect. |
| 465 |
|
| 466 |
2.7.3.28 - 2013-04-16 |
| 467 |
--------------------- |
| 468 |
|
| 469 |
- Pool: Fixed regression that disabled the deadlock |
| 470 |
fix in 2.7.3.24 |
| 471 |
|
| 472 |
- Pool: RestartFreqExceeded could be raised prematurely. |
| 473 |
|
| 474 |
- Process: Include pid in startup and process INFO logs. |
| 475 |
|
| 476 |
2.7.3.27 - 2013-04-12 |
| 477 |
--------------------- |
| 478 |
|
| 479 |
- Manager now works again. |
| 480 |
|
| 481 |
- Python 3 fixes for billiard.connection. |
| 482 |
|
| 483 |
- Fixed invalid argument bug when running on Python 3.3 |
| 484 |
|
| 485 |
Fix contributed by Nathan Wan. |
| 486 |
|
| 487 |
- Ignore OSError when setting up signal handlers. |
| 488 |
|
| 489 |
2.7.3.26 - 2013-04-09 |
| 490 |
--------------------- |
| 491 |
|
| 492 |
- Pool: Child processes must ignore SIGINT. |
| 493 |
|
| 494 |
2.7.3.25 - 2013-04-09 |
| 495 |
--------------------- |
| 496 |
|
| 497 |
- Pool: 2.7.3.24 broke support for subprocesses (Issue #48). |
| 498 |
|
| 499 |
Signals that should be ignored were instead handled |
| 500 |
by terminating. |
| 501 |
|
| 502 |
2.7.3.24 - 2013-04-08 |
| 503 |
--------------------- |
| 504 |
|
| 505 |
- Pool: Make sure finally blocks are called when process exits |
| 506 |
due to a signal. |
| 507 |
|
| 508 |
This fixes a deadlock problem when the process is killed |
| 509 |
while having acquired the shared semaphore. However, this solution |
| 510 |
does not protect against the processes being killed, a more elaborate |
| 511 |
solution is required for that. Hopefully this will be fixed soon in a |
| 512 |
later version. |
| 513 |
|
| 514 |
- Pool: Can now use GDB to debug pool child processes. |
| 515 |
|
| 516 |
- Fixes Python 3 compatibility problems. |
| 517 |
|
| 518 |
Contributed by Albertas Agejevas. |
| 519 |
|
| 520 |
2.7.3.23 - 2013-03-22 |
| 521 |
--------------------- |
| 522 |
|
| 523 |
- Windows: Now catches SystemExit from setuptools while trying to build |
| 524 |
the C extension (Issue #41). |
| 525 |
|
| 526 |
2.7.3.22 - 2013-03-08 |
| 527 |
--------------------- |
| 528 |
|
| 529 |
- Pool: apply_async now supports a ``callbacks_propagate`` keyword |
| 530 |
argument that can be a tuple of exceptions to propagate in callbacks. |
| 531 |
(callback, errback, accept_callback, timeout_callback). |
| 532 |
|
| 533 |
- Errors are no longer logged for OK and recycle exit codes. |
| 534 |
|
| 535 |
This would cause normal maxtasksperchild recycled process |
| 536 |
to log an error. |
| 537 |
|
| 538 |
- Fixed Python 2.5 compatibility problem (Issue #33). |
| 539 |
|
| 540 |
- FreeBSD: Compilation now disables semaphores if Python was built |
| 541 |
without it (Issue #40). |
| 542 |
|
| 543 |
Contributed by William Grzybowski |
| 544 |
|
| 545 |
2.7.3.21 - 2013-02-11 |
| 546 |
--------------------- |
| 547 |
|
| 548 |
- Fixed typo EX_REUSE -> EX_RECYCLE |
| 549 |
|
| 550 |
- Code now conforms to new pep8.py rules. |
| 551 |
|
| 552 |
2.7.3.20 - 2013-02-08 |
| 553 |
--------------------- |
| 554 |
|
| 555 |
- Pool: Disable restart limit if maxR is not set. |
| 556 |
|
| 557 |
- Pool: Now uses os.kill instead of signal.signal. |
| 558 |
|
| 559 |
Contributed by Lukasz Langa |
| 560 |
|
| 561 |
- Fixed name error in process.py |
| 562 |
|
| 563 |
- Pool: ApplyResult.get now properly raises exceptions. |
| 564 |
|
| 565 |
Fix contributed by xentac. |
| 566 |
|
| 567 |
2.7.3.19 - 2012-11-30 |
| 568 |
--------------------- |
| 569 |
|
| 570 |
- Fixes problem at shutdown when gc has collected symbols. |
| 571 |
|
| 572 |
- Pool now always uses _kill for Py2.5 compatibility on Windows (Issue #32). |
| 573 |
|
| 574 |
- Fixes Python 3 compatibility issues |
| 575 |
|
| 576 |
2.7.3.18 - 2012-11-05 |
| 577 |
--------------------- |
| 578 |
|
| 579 |
- [Pool] Fix for check_timeouts if not set. |
| 580 |
|
| 581 |
Fix contributed by Dmitry Sukhov |
| 582 |
|
| 583 |
- Fixed pickle problem with Traceback. |
| 584 |
|
| 585 |
Code.frame.__loader__ is now ignored as it may be set to |
| 586 |
an unpickleable object. |
| 587 |
|
| 588 |
- The Django old-layout warning was always showing. |
| 589 |
|
| 590 |
2.7.3.17 - 2012-09-26 |
| 591 |
--------------------- |
| 592 |
|
| 593 |
- Fixes typo |
| 594 |
|
| 595 |
2.7.3.16 - 2012-09-26 |
| 596 |
--------------------- |
| 597 |
|
| 598 |
- Windows: Fixes for SemLock._rebuild (Issue #24). |
| 599 |
|
| 600 |
- Pool: Job terminated with terminate_job now raises |
| 601 |
billiard.exceptions.Terminated. |
| 602 |
|
| 603 |
2.7.3.15 - 2012-09-21 |
| 604 |
--------------------- |
| 605 |
|
| 606 |
- Windows: Fixes unpickling of SemLock when using fallback. |
| 607 |
|
| 608 |
- Windows: Fixes installation when no C compiler. |
| 609 |
|
| 610 |
2.7.3.14 - 2012-09-20 |
| 611 |
--------------------- |
| 612 |
|
| 613 |
- Installation now works again for Python 3. |
| 614 |
|
| 615 |
2.7.3.13 - 2012-09-14 |
| 616 |
--------------------- |
| 617 |
|
| 618 |
- Merged with Python trunk (many authors, many fixes: see Python changelog in |
| 619 |
trunk). |
| 620 |
|
| 621 |
- Using execv now also works with older Django projects using setup_environ |
| 622 |
(Issue #10). |
| 623 |
|
| 624 |
- Billiard now installs with a warning that the C extension could not be built |
| 625 |
if a compiler is not installed or the build fails in some other way. |
| 626 |
|
| 627 |
It really is recommended to have the C extension installed when running |
| 628 |
with force execv, but this change also makes it easier to install. |
| 629 |
|
| 630 |
- Pool: Hard timeouts now sends KILL shortly after TERM so that C extensions |
| 631 |
cannot block the signal. |
| 632 |
|
| 633 |
Python signal handlers are called in the interpreter, so they cannot |
| 634 |
be called while a C extension is blocking the interpreter from running. |
| 635 |
|
| 636 |
- Now uses a timeout value for Thread.join that doesn't exceed the maximum |
| 637 |
on some platforms. |
| 638 |
|
| 639 |
- Fixed bug in the SemLock fallback used when C extensions not installed. |
| 640 |
|
| 641 |
Fix contributed by Mher Movsisyan. |
| 642 |
|
| 643 |
- Pool: Now sets a Process.index attribute for every process in the pool. |
| 644 |
|
| 645 |
This number will always be between 0 and concurrency-1, and |
| 646 |
can be used to e.g. create a logfile for each process in the pool |
| 647 |
without creating a new logfile whenever a process is replaced. |
| 648 |
|
| 649 |
2.7.3.12 - 2012-08-05 |
| 650 |
--------------------- |
| 651 |
|
| 652 |
- Fixed Python 2.5 compatibility issue. |
| 653 |
|
| 654 |
- New Pool.terminate_job(pid) to terminate a job without raising WorkerLostError |
| 655 |
|
| 656 |
2.7.3.11 - 2012-08-01 |
| 657 |
--------------------- |
| 658 |
|
| 659 |
- Adds support for FreeBSD 7+ |
| 660 |
|
| 661 |
Fix contributed by koobs. |
| 662 |
|
| 663 |
- Pool: New argument ``allow_restart`` is now required to enable |
| 664 |
the pool process sentinel that is required to restart the pool. |
| 665 |
|
| 666 |
It's disabled by default, which reduces the number of file |
| 667 |
descriptors/semaphores required to run the pool. |
| 668 |
|
| 669 |
- Pool: Now emits a warning if a worker process exited with error-code. |
| 670 |
|
| 671 |
But not if the error code is 155, which is now returned if the worker |
| 672 |
process was recycled (maxtasksperchild). |
| 673 |
|
| 674 |
- Python 3 compatibility fixes. |
| 675 |
|
| 676 |
- Python 2.5 compatibility fixes. |
| 677 |
|
| 678 |
2.7.3.10 - 2012-06-26 |
| 679 |
--------------------- |
| 680 |
|
| 681 |
- The ``TimeLimitExceeded`` exception string representation |
| 682 |
only included the seconds as a number, it now gives a more human |
| 683 |
friendly description. |
| 684 |
|
| 685 |
- Fixed typo in ``LaxBoundedSemaphore.shrink``. |
| 686 |
|
| 687 |
- Pool: ``ResultHandler.handle_event`` no longer requires |
| 688 |
any arguments. |
| 689 |
|
| 690 |
- setup.py bdist now works |
| 691 |
|
| 692 |
2.7.3.9 - 2012-06-03 |
| 693 |
-------------------- |
| 694 |
|
| 695 |
- Environment variable ``MP_MAIN_FILE`` envvar is now set to |
| 696 |
the path of the ``__main__`` module when execv is enabled. |
| 697 |
|
| 698 |
- Pool: Errors occurring in the TaskHandler are now reported. |
| 699 |
|
| 700 |
2.7.3.8 - 2012-06-01 |
| 701 |
-------------------- |
| 702 |
|
| 703 |
- Can now be installed on Py 3.2 |
| 704 |
|
| 705 |
- Issue #12091: simplify ApplyResult and MapResult with threading.Event |
| 706 |
|
| 707 |
Patch by Charles-Francois Natali |
| 708 |
|
| 709 |
- Pool: Support running without TimeoutHandler thread. |
| 710 |
|
| 711 |
- The with_*_thread arguments has also been replaced with |
| 712 |
a single `threads=True` argument. |
| 713 |
|
| 714 |
- Two new pool callbacks: |
| 715 |
|
| 716 |
- ``on_timeout_set(job, soft, hard)`` |
| 717 |
|
| 718 |
Applied when a task is executed with a timeout. |
| 719 |
|
| 720 |
- ``on_timeout_cancel(job)`` |
| 721 |
|
| 722 |
Applied when a timeout is cancelled (the job completed) |
| 723 |
|
| 724 |
2.7.3.7 - 2012-05-21 |
| 725 |
-------------------- |
| 726 |
|
| 727 |
- Fixes Python 2.5 support. |
| 728 |
|
| 729 |
2.7.3.6 - 2012-05-21 |
| 730 |
-------------------- |
| 731 |
|
| 732 |
- Pool: Can now be used in an event loop, without starting the supporting |
| 733 |
threads (TimeoutHandler still not supported) |
| 734 |
|
| 735 |
To facilitate this the pool has gained the following keyword arguments: |
| 736 |
|
| 737 |
- ``with_task_thread`` |
| 738 |
- ``with_result_thread`` |
| 739 |
- ``with_supervisor_thread`` |
| 740 |
- ``on_process_up`` |
| 741 |
|
| 742 |
Callback called with Process instance as argument |
| 743 |
whenever a new worker process is added. |
| 744 |
|
| 745 |
Used to add new process fds to the eventloop:: |
| 746 |
|
| 747 |
def on_process_up(proc): |
| 748 |
hub.add_reader(proc.sentinel, pool.maintain_pool) |
| 749 |
|
| 750 |
- ``on_process_down`` |
| 751 |
|
| 752 |
Callback called with Process instance as argument |
| 753 |
whenever a new worker process is found dead. |
| 754 |
|
| 755 |
Used to remove process fds from the eventloop:: |
| 756 |
|
| 757 |
def on_process_down(proc): |
| 758 |
hub.remove(proc.sentinel) |
| 759 |
|
| 760 |
- ``semaphore`` |
| 761 |
|
| 762 |
Sets the semaphore used to protect from adding new items to the |
| 763 |
pool when no processes available. The default is a threaded |
| 764 |
one, so this can be used to change to an async semaphore. |
| 765 |
|
| 766 |
And the following attributes:: |
| 767 |
|
| 768 |
- ``readers`` |
| 769 |
|
| 770 |
A map of ``fd`` -> ``callback``, to be registered in an eventloop. |
| 771 |
Currently this is only the result outqueue with a callback |
| 772 |
that processes all currently incoming results. |
| 773 |
|
| 774 |
And the following methods:: |
| 775 |
|
| 776 |
- ``did_start_ok`` |
| 777 |
|
| 778 |
To be called after starting the pool, and after setting up the |
| 779 |
eventloop with the pool fds, to ensure that the worker processes |
| 780 |
didn't immediately exit caused by an error (internal/memory). |
| 781 |
|
| 782 |
- ``maintain_pool`` |
| 783 |
|
| 784 |
Public version of ``_maintain_pool`` that handles max restarts. |
| 785 |
|
| 786 |
- Pool: Process too frequent restart protection now only counts if the process |
| 787 |
had a non-successful exit-code. |
| 788 |
|
| 789 |
This to take into account the maxtasksperchild option, and allowing |
| 790 |
processes to exit cleanly on their own. |
| 791 |
|
| 792 |
- Pool: New options max_restart + max_restart_freq |
| 793 |
|
| 794 |
This means that the supervisor can't restart processes |
| 795 |
faster than max_restart' times per max_restart_freq seconds |
| 796 |
(like the Erlang supervisor maxR & maxT settings). |
| 797 |
|
| 798 |
The pool is closed and joined if the max restart |
| 799 |
frequency is exceeded, where previously it would keep restarting |
| 800 |
at an unlimited rate, possibly crashing the system. |
| 801 |
|
| 802 |
The current default value is to stop if it exceeds |
| 803 |
100 * process_count restarts in 1 seconds. This may change later. |
| 804 |
|
| 805 |
It will only count processes with an unsuccessful exit code, |
| 806 |
this is to take into account the ``maxtasksperchild`` setting |
| 807 |
and code that voluntarily exits. |
| 808 |
|
| 809 |
- Pool: The ``WorkerLostError`` message now includes the exit-code of the |
| 810 |
process that disappeared. |
| 811 |
|
| 812 |
|
| 813 |
2.7.3.5 - 2012-05-09 |
| 814 |
-------------------- |
| 815 |
|
| 816 |
- Now always cleans up after ``sys.exc_info()`` to avoid |
| 817 |
cyclic references. |
| 818 |
|
| 819 |
- ExceptionInfo without arguments now defaults to ``sys.exc_info``. |
| 820 |
|
| 821 |
- Forking can now be disabled using the |
| 822 |
``MULTIPROCESSING_FORKING_DISABLE`` environment variable. |
| 823 |
|
| 824 |
Also this envvar is set so that the behavior is inherited |
| 825 |
after execv. |
| 826 |
|
| 827 |
- The semaphore cleanup process started when execv is used |
| 828 |
now sets a useful process name if the ``setproctitle`` |
| 829 |
module is installed. |
| 830 |
|
| 831 |
- Sets the ``FORKED_BY_MULTIPROCESSING`` |
| 832 |
environment variable if forking is disabled. |
| 833 |
|
| 834 |
|
| 835 |
2.7.3.4 - 2012-04-27 |
| 836 |
-------------------- |
| 837 |
|
| 838 |
- Added `billiard.ensure_multiprocessing()` |
| 839 |
|
| 840 |
Raises NotImplementedError if the platform does not support |
| 841 |
multiprocessing (e.g. Jython). |
| 842 |
|
| 843 |
|
| 844 |
2.7.3.3 - 2012-04-23 |
| 845 |
-------------------- |
| 846 |
|
| 847 |
- PyPy now falls back to using its internal _multiprocessing module, |
| 848 |
so everything works except for forking_enable(False) (which |
| 849 |
silently degrades). |
| 850 |
|
| 851 |
- Fixed Python 2.5 compat. issues. |
| 852 |
|
| 853 |
- Uses more with statements |
| 854 |
|
| 855 |
- Merged some of the changes from the Python 3 branch. |
| 856 |
|
| 857 |
2.7.3.2 - 2012-04-20 |
| 858 |
-------------------- |
| 859 |
|
| 860 |
- Now installs on PyPy/Jython (but does not work). |
| 861 |
|
| 862 |
2.7.3.1 - 2012-04-20 |
| 863 |
-------------------- |
| 864 |
|
| 865 |
- Python 2.5 support added. |
| 866 |
|
| 867 |
2.7.3.0 - 2012-04-20 |
| 868 |
-------------------- |
| 869 |
|
| 870 |
- Updated from Python 2.7.3 |
| 871 |
|
| 872 |
- Python 2.4 support removed, now only supports 2.5, 2.6 and 2.7. |
| 873 |
(may consider py3k support at some point). |
| 874 |
|
| 875 |
- Pool improvements from Celery. |
| 876 |
|
| 877 |
- no-execv patch added (https://bugs.python.org/issue8713) |