Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

Deploying Multiple Python Bots to a Single Railway Container

A tutorial for running two or more python bots on Railway inside one container and one service, with independent crash recovery for each. Deploying Multiple Python Bots to a Single Railway Container If you're running more than one Python bot — say, a Telegram ingestion bot and a Discord notification bot that share a database — deploying each as its own Railway service means double the hosting…

Running multiple Python bots on Railway in the same container and single service can save on costs, simplify configuration, and maintain independent crash recovery. Instead of deploying each bot as its own Railway service, which would double hosting costs and configuration, this tutorial shows how to place both bots inside one Railway container.

The bots communicate through the main.py entry point, which uses the StayPresent library to supervise them individually. By installing StayPresent and structuring the project with a main.py script, each bot is run as a separate subprocess monitored independently. This setup allows both bots to share a database, queue, or other resources while still having separate crash recovery and monitoring.

Railway assigns a port to the service, which is read by StayPresent and passed to each bot's script, ensuring they each have their own port. Deploying the main.py script as the single Railway service runs both bots together, reducing hosting costs, while still providing separate monitoring and crash recovery for each bot.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to Stop Your Discord Bot From Sleeping on Render's Free Tier

A step-by-step tutorial to stop a discord bot from sleeping on Render's free tier — the real cause, the fix, and a working code example.

  • Discord bots on Render's free tier may stop functioning due to health checks.
  • Install staypresent library to keep Python applications running.
  • Configure main.py with staypresent.web.json() and set Render start command to python main.py.

"What's the Catch?" — Why StayPresent Is Actually Free

A tool that handles crash recovery, hang detection, and a full status page sounds like it should cost something. Here's why it doesn't, and won't.

  • StayPresent is free to use under MIT License.
  • No infrastructure costs, runs inside user's deployment.
  • Open source, transparent license, no hidden features.

The excluded-plugin setting that Playwright ignored — fixing browser-mode updates and false residual warnings

The symptom In browser-mode maintenance (Playwright, no SSH), plugins marked as "excluded from update checks" were still being updated.

  • Playwright's excluded-plugin setting ignored ignored plugins during browser-mode updates
  • Two changes implemented: per-checkbox evaluation and adjusted residual check
  • New functions normalize and compare ignored plugins for accurate maintenance

More from Thursday 20 August →