@ULTIMORAPOLITICS · Post #45265 · 06.12.2024 г., 13:21
AP - La Corte Costituzionale della #Romania ha annullato l’esito del primo turno delle elezioni presidenziali. @UltimoraPolitics
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
Пребарај: #romania
@ULTIMORAPOLITICS · Post #45265 · 06.12.2024 г., 13:21
AP - La Corte Costituzionale della #Romania ha annullato l’esito del primo turno delle elezioni presidenziali. @UltimoraPolitics
Hashtags
@ULTIMORAPOLITICS · Post #45264 · 06.12.2024 г., 13:18
AP - La Corte Costituzionale della #Romania ha annullato l’esito del primo turno delle elezioni presidenziali. @UltimoraPolitics
Hashtags
@popularxfront · Post #4196 · 18.12.2025 г., 23:46
🇷🇴#Romania: Archival footage from the Romanian Revolution of December 1989 captures armed clashes between rebels, government forces, and so-called terrorists. The uprising began in Timișoara after authorities attempted to evict Hungarian pastor Tőkés, sparking protests that escalated nationwide. The regime responded by ordering live fire against civilians, resulting in hundreds of deaths. However, parts of the army switched sides, and after Ceaușescu’s control collapsed (Communist Romania's leader), authorities claimed the country was under attack by foreign agents. Chaos ensued, with armed civilians, Securitate agents (Romanian KGB), and army units clashing, leading to friendly fire and panic, with passersby often labeled as terrorists. The violence subsided rapidly after Ceaușescu’s execution and consolidation of power by the National Salvation Front. The alleged terrorists vanished, gunfire declined, and investigations stalled. To this day, the true elements responsible for the deaths remain unknown.
Hashtags
@VOYAGE · Post #1705 · 31.03.2026 г., 12:14
Romania🇷🇴 ✅ Romania is a classic European country known for its beautiful beaches, stunning nature, and famous ski resorts. If you prefer a calm and relaxed vacation, this is a great option. ✅ While Romania may not be the wealthiest country in Europe, interest in it has significantly grown in recent years. With plenty of sunshine, clear seas, and beautiful mountains, it offers many attractions. Highlights include well-preserved medieval castles and picturesque national parks. #Romania | @voyage
Hashtags
@VOYAGE · Post #1173 · 24.11.2024 г., 13:14
ROMANIA🇷🇴 ✅ Romania is a classic European country known for its beautiful beaches, stunning nature, and famous ski resorts. If you prefer a calm and relaxed vacation, this is a great option. ✅ While Romania may not be the wealthiest country in Europe, interest in it has significantly grown in recent years. With plenty of sunshine, clear seas, and beautiful mountains, it offers many attractions. Highlights include well-preserved medieval castles and picturesque national parks. #Romania @voyage
Hashtags
@jbazuka · Post #116 · 07.07.2022 г., 05:53
🇷🇴#RomaniaНа западе Румынии горит пшеничное поле ⚠️☝️ 💬 Огонь охватил около 100 га. Причиной, предположительно, стала сильная жара: последние дни температура воздуха тут достигает +40 °С. 💬 Местные предполагают, что на самом деле это спланированное уничтожение пшеничного поля, чтобы создать искуственный голод!
Hashtags
@NatureTravelVacationPictures · Post #2084 · 03.12.2019 г., 13:38
🌿🍁🍃Bucharest, Romania🇷🇴 #nature#travel#places#romania 📷worldtravel.bug 💁Vɪᴀ@Natures_World ✅🔜@R_Group_Official 🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃
@interesting_planet_facts · Post #1230 · 17.01.2026 г., 12:11
🌎 Deep inside Romania’s Apuseni Mountains, the Scarisoara Ice Cave contains one of the oldest and largest underground glaciers in the world. The ice block is over 3,500 years old and reaches about 26 meters thick. ✨ #caves⚡#geology⚡#Romania 👉subscribe Interesting Planet 👉more Channels
@popularxfront · Post #5150 · 27.02.2026 г., 19:48
🇺🇦#Ukraine / 🇷🇴#Romania - 🇷🇺#Russia: Footage shows a Russian Shahed drone being shot down by Ukrainian air defence over the Danube River in Odesa Oblast this morning. The video was filmed from the Romanian side of the border, showing just how close these drones are flying next to neighbouring countries. Over the past years, there have been multiple incidents of such drones crashing into Romanian territory. (📹 via @Archer83Able on X)
@tuttoelezioni · Post #999 · 18.05.2025 г., 18:29
#Romania🇷🇴 #Presidenziali 🕗Ore 20:00 italiane (21:00 ora locale). Affluenza parziale (dati interni ed esteri): 64,72% (+11,51% rispetto al primo turno). Affluenza parziale (solo dati interni): 55,57% (+7,77% rispetto al primo turno). @TuttoElezioni
Hashtags
@tuttoelezioni · Post #991 · 18.05.2025 г., 18:00
#Romania🇷🇴 #Presidenziali 🗳 Urne chiuse per le elezioni presidenziali in Romania. @TuttoElezioni
Hashtags
@tuttoelezioni · Post #990 · 18.05.2025 г., 17:34
#Romania🇷🇴 #Presidenziali ❗️Superata l'affluenza del 2014 al secondo turno. Si tratta delle elezioni presidenziali più partecipate da quelle del 1996. @TuttoElezioni
Hashtags