@maninamerica · Post #2812 · 01.02.2025 г., 19:01
USDA ordered to remove ALL references to #ClimateChange from their websites.😮
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #425 · 20 апр.
Недавно делал быстрый прототип асинхронного приложения в котором требовалось вызывать много синхронного кода. Да, я знаю, что это не лучший дизайн, но нужно было быстрое решение на один процесс и без очередей. Поэтому я выполнял код в потоках. Выглядело это примерно так: from fastapi.concurrency import run_in_threadpool async def execute(data: DataRequest) -> DataResponse: try: result = await run_in_threadpool(sync_function, data) return DataResponse(data=result) except Exception as e: return DataResponse( error=str(e), success=False, ) В общем работает нормально. Для всех вызовов под капотом используется общий тредпул, всё работает предсказуемо. Но потребовалось изменить количество запускаемых в пуле потоков (по умолчанию создается 40 воркеров). Так как дело происходит с FastAPI, делается это через lifespan используя настройки anyio: import anyio @asynccontextmanager async def lifespan(app: FastAPI): limiter = anyio.to_thread.current_default_thread_limiter() limiter.total_tokens = 100 yield # если вдруг нужно вернуть обратно limiter.total_tokens = 40 Зачем менять количество воркеров? - уменьшить, если оперативки мало (один тред занимает ~8мб) - увеличить чтобы выдержать нагрузку Если есть предложения получше при тех же вводных - предлагайте😉 #async
Hashtags
Пребарај: #climatechange
@maninamerica · Post #2812 · 01.02.2025 г., 19:01
USDA ordered to remove ALL references to #ClimateChange from their websites.😮
Hashtags
@MyGovHindi · Post #6601 · 15.04.2023 г., 09:55
#climatechange #WorldBank
Hashtags
@MyGovHindi · Post #6600 · 15.04.2023 г., 08:55
#climatechange #WorldBank
Hashtags
@MyGovHindi · Post #6599 · 15.04.2023 г., 07:55
वर्ल्ड बैंक इवेंट में प्रधानमंत्री के संबोधन की मुख्य बातें। #climatechange #WorldBank
Hashtags
@FeruzbekSayfullayev · Post #3550 · 26.03.2026 г., 02:46
🚨 O‘zbekiston aholisi favqulodda vaziyatlar haqida masjidlar orqali ogohlantiriladi 🤝 Biz Favqulodda vaziyatlar vazirligi bilan hamkorlikda ofatlar yuzaga kelganda imkon qadar ko‘proq aholiga tezkor axborot yetkazishni ta’minlashga qaratilgan innovatsion yechimni amalga oshirmoqdamiz. 📢 Mazkur tashabbus doirasida 7 ta hududdagi 272 ta masjid maxsus uskunalar bilan jihozlandi. Ushbu uskunalar orqali FVVning tezkor xabarlari masjidlarning tashqi ovoz kuchaytirgichlari yordamida uzatiladi va keng jamoatchilikka tez ravishda yetkaziladi. 👥 Loyiha hisob-kitoblariga ko‘ra, masjidlar orqali ogohlantirish tizimi taxminan 6,5 million nafar aholini qamrab olishi mumkin. 🌍 Iqlim xavflari ortib borayotgan bugungi sharoitda erta ogohlantirish tizimlarini mustahkamlash inson hayotini saqlab qolishda muhim ahamiyatga ega. Batafsil: https://go.undp.org/SMy - - - - 🚨 Жители теперь могут получать экстренные оповещения через громкоговорители мечетей. 🤝 Мы совместно с МЧС внедрили инновационное решение, направленное на оперативное информирование как можно большего числа людей во время чрезвычайных ситуаций. 📢 В рамках инициативы 272 мечети в 7 регионах оснащены специальными устройствами, позволяющими передавать экстренные сообщения МЧС через внешние громкоговорители мечетей и оперативно доводить информацию до широкой аудитории. 👥 По оценкам проекта, оповещение через мечети позволяет охватить около 6,5 млн человек. 🌍 В условиях роста климатических рисков укрепление систем раннего оповещения играет ключевую роль в спасении жизней. Подробнее: https://go.undp.org/SQZ #MHEWS#ClimateChange
Hashtags
@upscir · Post #3252 · 05.12.2023 г., 03:24
Multilateral gatherings like COP-28 compel all governments to pay attention to #ClimateChange and also facilitate #ClimateJustice for poor countries, says Dr. Navroz Dubash. Watch the full episode of this informative TV show to learn more. CLICK HERE 👇 https://youtu.be/6nlFE6iMSXE?si=F1k0afntcu09hXMX
Hashtags
@MyGovCoronaNewsdesk · Post #12548 · 15.04.2023 г., 09:58
#climatechange #WorldBank
Hashtags
@MyGovCoronaNewsdesk · Post #12547 · 15.04.2023 г., 08:58
#climatechange #WorldBank
Hashtags
@MyGovCoronaNewsdesk · Post #12546 · 15.04.2023 г., 07:57
#climatechange #WorldBank
Hashtags
@reutersworldchannel · Post #149553 · 19.10.2021 г., 09:47
Designer Vivienne Westwood shares her 'Letter to Earth' British fashion designer Vivienne Westwood and Nigerian author Ben Okri read out their 'Letters to the Earth' as part of a campaign urging action against climate change in the run-up to the U.N. #COP26 summit. #News#Reuters#ClimateChange Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@reutersworldchannel · Post #149550 · 19.10.2021 г., 02:04
Explained: Key things to watch for at COP26 As public pressure grows for action to limit climate change, world leaders from nearly 200 countries will convene in Glasgow, Scotland, at the end of October for the COP26 conference. Here are the key climate issues that need resolution. #COP26#News#Reuters#ClimateChange Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@venanalysis · Post #2062 · 12.08.2025 г., 20:51
📝 INTERVIEW | Esquisa Omaña: ‘Agroecology Is the Alternative to the Climate and Civilization Collapse’ In the latest VA interview, Venezuelan biologist and ecologist Esquisa Omaña, a researcher at the Venezuelan Institute for Scientific Research (IVIC) and doctoral candidate in Agrarian Social Studies at the University of Córdoba (Argentina), discusses agroecology as a grassroots alternative to agribusiness. She is also active in the GMO-Free Venezuela Campaign and the Pueblo a Pueblo Plan. 'Agroecology or nothing,' states Omaña, stressing that only community-based farming rooted in Indigenous and Afro-descendant traditions can confront the climate and civilization collapse. She points to rotational conuco agriculture and initiatives like Pueblo a Pueblo, which supplies 100 tons of food monthly to schools, as proof that local models can feed people while challenging corporate control of food systems. 🔗 Read the full interview here: https://shorturl.at/zWvmQ #Agroecology#ClimateChange#PuebloaPueblo