Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion devel/management/commands/archweb_inotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ def run():
if retry_count == self.retry_limit:
logger.error('Unable to update database, exceeded maximum retries')

process = multiprocessing.Process(target=run)
# Python 3.14 changed the non-macOS POSIX default to forkserver
# but the code in this module does not work with it
# See https://github.com/python/cpython/issues/125714
if multiprocessing.get_start_method() == 'forkserver':
_mp_context = multiprocessing.get_context(method='fork')
else:
_mp_context = multiprocessing.get_context()
process = _mp_context.Process(target=run)
process.start()
process.join()
finally:
Expand Down