wrolpi/modules/zim
Roland 58de8c7c5b
Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works.
Python 3.11 is now required, old versions were causing unpredictability in tests.  (Sanic does not yet
support 3.12)

Sanic has been upgraded to 23.6.0, which is the latest version that avoids this bug:
 https://github.com/sanic-org/sanic/issues/2921

New strategy for multiprocessing is to create all multiprocessing tools in one process, then fork
to other processes.  The previous strategy was to declare multiprocessing tools at the top of every
file, or wherever they were needed at import/creation.  Now all multiprocessing tools are attached to the
app.shared_ctx.  This means `api_app` is imported in many, many places.

This forced a change in how the DownloadManager works.  Previously, it would continually run
download workers which would pull downloads from a multiprocessing.Queue.  Now, a single worker checks
for new downloads and sends a Sanic signal.

Flags have been reworked to use the `api_app`.  I removed the `which` flag functionality because the
`which` are called at import and needed their own multiprocessing.Event.
2024-04-30 10:55:25 -06:00
..
test Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
__init__.py Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
api.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
conftest.py Creating background process that fetches comments for Videos that do not yet have comments. 2024-03-01 17:15:56 -07:00
downloader.py Reverting to older singlefile container to keep archive screenshot ratio. Using FileGroup.url on ArchivePage. 2023-10-31 10:20:45 -06:00
errors.py Splitting errors into their modules. Removing API_ERRORS dict in favor of storing error data on the class. 2023-07-17 14:21:27 -06:00
kiwix.py Adding medical wiki projects. 2024-02-13 14:16:16 -07:00
lib.py Allowing maintainer to change special directories. 2024-03-09 16:51:26 -07:00
models.py Removing unused imports. 2023-09-12 17:49:26 -06:00
schema.py Adding search icon button to navbar. 2024-01-01 11:31:17 -07:00