django/django
Ceesjan Luiten cb6c19749d Refs #27734 -- Prevented creation of more parallel workers than TestCases.
The parallel test runner uses multiple workers to distribute the
workload. These workers are assigned a worker ID using a globally
incremented variable, which determines what test database to connect
to. When the worker ID surpasses the test database IDs Django will
crash.

This reduce likelihood of crashing parallel tests because
ParallelTestSuite will no longer create more workers than TestCases.

It won't eliminate the problem completely though because there are
other circumstances in which new workers can be created which can then
be assigned an "illegal" worker ID.
2021-06-10 07:32:15 +02:00
..
apps Refs #32355 -- Corrected comments about Python's _NamespacePath. 2021-03-26 10:17:10 +01:00
conf Fixed #32379 -- Started deprecation toward changing default USE_TZ to True. 2021-05-18 20:26:44 +02:00
contrib Fixed #32829 -- Updated help text for clearsessions management command. 2021-06-09 12:08:59 +02:00
core Fixed #32821 -- Updated os.scandir() uses to use a context manager. 2021-06-07 06:52:42 +02:00
db Fixed #25255 -- Recorded unapplied squashed migrations. 2021-06-08 08:40:34 +02:00
dispatch Refs #31327 -- Removed providing_args argument for Signal per deprecation timeline. 2021-01-14 17:50:04 +01:00
forms Fixed #32821 -- Updated os.scandir() uses to use a context manager. 2021-06-07 06:52:42 +02:00
http Fixed #32366 -- Updated datetime module usage to recommended approach. 2021-05-12 11:08:41 +02:00
middleware Fixed #32796 -- Changed CsrfViewMiddleware to fail earlier on badly formatted cookie tokens. 2021-06-01 09:02:27 +02:00
template Fixed #32814 -- Improved performance of TextNode. 2021-06-07 21:02:00 +02:00
templatetags Refs #24121 -- Added__repr__() to StaticNode. 2021-05-12 08:41:52 +02:00
test Refs #27734 -- Prevented creation of more parallel workers than TestCases. 2021-06-10 07:32:15 +02:00
urls Fixed #32195 -- Added system check for invalid view in path() and improved error messages. 2021-06-09 09:06:42 +02:00
utils Fixed #32810 -- Optimized django.utils.formats.number_format() a bit. 2021-06-05 13:48:26 +02:00
views Fixed #32366 -- Updated datetime module usage to recommended approach. 2021-05-12 11:08:41 +02:00
__init__.py Bumped version; master is now 4.0 pre-alpha. 2021-01-14 17:50:04 +01:00
__main__.py Fixed #24857 -- Added "python -m django" entry point. 2015-09-07 19:54:32 -04:00
shortcuts.py Made small readability improvements. 2020-10-28 20:20:20 +01:00