wrolpi/wrolpi
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
..
files Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
scripts Combining install scripts into a new repair script. Removing create_db script in favor of repair script. 2023-10-03 12:15:29 -06:00
tags Adding try/except around BeautifulSoup parsing. Testing finding HTML documents. 2023-08-31 08:43:09 -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 Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
admin.py Limiting attempts to start the hotspot. 2023-10-09 15:44:34 -06:00
api_utils.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
captions.py Raising FileNotFoundError instead of using assert. 2023-05-23 16:22:32 -06:00
cmd.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
common.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 Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
contexts.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
count_files.py Counting files before refresh to display more helpful progress. 2023-04-10 15:48:25 -06:00
dates.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
db.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
downloader.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
errors.py A user can ignore a directory by selecting it and ignoring it in the FileBrowser. 2024-02-19 14:44:20 -07:00
events.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
flags.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
lang.py Adding great britian language. 2023-08-04 11:02:21 -06:00
media_path.py Increasing test coverage. Removing unused code. 2022-10-15 17:41:10 -06:00
roland@learningselfreliance.com.gpg Adding my public gpg key. 2023-04-28 13:56:32 -06:00
root_api.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
schema.py Testing channel suggestions being ordered by video count. 2024-04-16 15:48:09 -06:00
scrape_downloader.py Adding FileGroup.published_date/author/etc. Creating script which converts a Singlefile to an Archive FileGroup files. 2023-10-23 18:09:08 -06:00
status.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
tags.py Automatically backing up config files each day in config/backup directory. 2024-03-11 17:47:35 -06:00
vars.py Upgrading Sanic and yt-dlp. Major changes occurred because Sanic changed how multiprocessing works. 2024-04-30 10:55:25 -06:00
version.py Bumping version. Moving version to text file for easy reference in scripts. 2023-05-03 13:39:58 -06:00
version.txt Bumping version for special directories settings. 2024-03-09 16:55:32 -07:00