[11:14:16] [telegram] I asked this on the Help:Toolforge page, but I thought I'd ask here too: [11:14:17] [telegram] https://wikitech.wikimedia.org/wiki/Help_talk:Toolforge#Support_for_ASGI? [11:14:19] [telegram] The main example for Toolforge is for using Python/Flask via WSGI with Kubernetes. Is there support for ASGI (Asynchronous Server Gateway Interface) services, such as FastAPI and Uvicorn? I couldn't find any examples of services running with ASGI, so that's why I ask. Thanks. [11:23:00] I don't think the current webservice tooling supports that [11:28:58] [telegram] Thanks majavah, that's what I had assumed but wanted to check. Any idea how hard/easy/impossible that might be going forward? [11:29:37] [telegram] I also searched Phabricator for any ASGI related tasks and found nothing [11:31:36] [telegram] Have you opened a phab ticket about this? (re @বোধিসত্ত্ব: Running setup.py clean for pyaudio [11:31:37] [telegram] Failed to build pyaudio [11:31:38] [telegram] Installing collected packages: pyaudio [11:31:40] [telegram] Running setup.py install for pyaudio ... error [11:31:41] [telegram] ERROR: Command errored out with exit status 1: [11:31:43] [telegram] command: /srv/paws/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3js4gja7/pyaudio_48545f01134b43468e9bb35c863412f2/setup.py'"'"'; file='"'"'/tmp/pip-install-3js4gja7/pyaudio_48545f01134b43468e9bb35c863412f2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setu [11:31:44] [telegram] cwd: /tmp/pip-install-3js4gja7/pyaudio_48545f01134b43468e9bb35c863412f2/ [11:31:46] [telegram] Complete output (18 lines): [11:31:47] [telegram] running install [11:31:49] [telegram] /srv/paws/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. [11:31:50] [telegram] warnings.warn( [11:31:52] [telegram] running build [11:31:53] [telegram] running build_py [11:31:55] [telegram] creating build [11:31:56] [telegram] creating build/lib.linux-x86_64-3.8 [11:31:58] [telegram] copying src/pyaudio.py -> build/lib.linux-x86_64-3.8 [11:31:59] [telegram] running build_ext [11:32:01] [telegram] building '_portaudio' extension [11:32:02] [telegram] creating build/temp.linux-x86_64-3.8 [11:32:04] [telegram] creating build/temp.linux-x86_64-3.8/src [11:32:05] [telegram] x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/srv/paws/include -I/usr/include/python3.8 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.8/src/_portaudiomodule.o [11:32:07] [telegram] src/_portaudiomodule.c:29:10: fatal error: portaudio.h: No such file or directory [11:32:08] [telegram] 29 | #include "portaudio.h" [11:32:10] [telegram] | ^~~~~~~~~~~~~ [11:32:11] [telegram] compilation terminated. [11:32:13] [telegram] error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 [11:32:14] [telegram] ---------------------------------------- [11:32:16] [telegram] ERROR: Command errored out with exit status 1: /srv/paws/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3js4gja7/pyaudio_48545f01134b43468e9bb35c863412f2/setup.py'"'"'; file='"'"'/tmp/pip-install-3js4gja7/pyaudio_48545f01134b43468e9bb35c863412f2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'f [11:33:11] fuzheado: not sure, probably not that complicated but not super simple either. Are you willing to write the patches needed for that? [11:49:18] [telegram] I'm not well versed enough in this to be trusted. :) I'm thinking if there's not enough general desire to have this running for other services of this type, then going with a CloudVPS instance and containerizing a FastAPI tool might be the way to go. (re @wmtelegram_bot: [irc] fuzheado: not sure, probably not that complicated but not super simple either. Are you willing to write the patches needed fo [12:23:57] [telegram] <বোধিসত্ত্ব> T296385 , just did after your message (re @chicocvenancio: Have you opened a phab ticket about this?) [12:28:06] [telegram] <বোধিসত্ত্ব> T296385 , just did after your message 😊 (re @chicocvenancio: Have you opened a phab ticket about this?) [15:05:50] [telegram] Hey! Today I ran mediawiki on my local Docker and in the LocalSetting.php settings I specified my personal MySQL database on reg.ru hosting. [15:05:50] [telegram] The problem is this: when saving or editing, or switching to another page takes more than 10-20 seconds. This greatly affects the usability of mediawiki. [15:05:52] [telegram] Please tell me what could be the problem? [15:06:04] [telegram] Probably a lack of caching [15:07:52] [telegram] Yes, you are right, during the installation I did not indicate this, how can I fix this on an already installed system? [15:08:34] [telegram] https://www.mediawiki.org/wiki/Manual:Performance_tuning [15:08:47] [telegram] That should get you going [15:09:09] [telegram] Though, I will also note... If you're running a remote database across the internet... That will likely not be good for performance