Get a ping when your training run or build finishes

Tim LidRun
6 menit bacaJun 2026

The annoying part of a long job is not the waiting, it is the not-knowing. You start a training run or a release build, walk away, and then keep wandering back to the desk to check a terminal that has not changed. LidRun can send the all-clear to your phone instead, so you can get notified when a Mac job finishes rather than hovering over it.

Why you keep checking the terminal

An overnight Ollama pull or a 40-minute cargo build does not need you for any of its runtime. It needs you for one moment: the instant it finishes, or the instant something goes wrong.

Without a notification, you either sit and watch, or you guess. Guessing means coming back too early and waiting more, or too late and losing an hour you could have spent on the next thing. Neither is great when the run is the slow part of your loop.

The fix is to be told. A short message the moment the command exits, with whether it actually succeeded, turns a babysitting session into something you can leave alone.

The Telegram bot, without the bot setup

Telegram is usually the fiddly one, because the normal path is creating your own bot, juggling a token, and digging out a chat id. LidRun skips that. There is a shared LidRun Telegram bot: you message it, and LidRun fetches your Chat ID for you.

That is the whole setup. You do not create a bot, you do not paste a token, you just start a conversation with the LidRun bot and let it wire up the rest. From then on, alerts land in Telegram like any other message.

It is a small thing, but it removes the step most people stall on. The point of an alert is to save you time, not to cost you twenty minutes in a bot dashboard first.

Panduan terkaitRun a long command, then let your Mac sleep when it's done

Discord, Slack, webhooks, and phone push

If your team already lives in Discord or Slack, LidRun can post to an incoming-webhook URL from either, so a finished run shows up in the channel you already watch.

For anything custom there is a generic webhook: LidRun sends JSON with a title, a body, and an event, which you can route into your own tooling, a home dashboard, or whatever automation you already run.

And for a straight phone push there are two options: ntfy.sh, which is free and topic-based, and Pushover, which is paid. Pick whichever fits how you already get notified; they all carry the same kinds of messages.

What actually triggers an alert

Two kinds of event are worth a ping. The first is a watched command finishing. When you run a command under LidRun, it holds keep-awake for the command's lifetime and, on exit, reports the exit code and duration, so the alert tells you not just that it ended but whether it ended well. An exit code of zero reads very differently from a non-zero one at 3am.

The second is a safety event. If the safety governor decides to let the Mac sleep because thermal pressure climbed too high or the battery dropped past your threshold, that is exactly the kind of thing you want to hear about while you are away, not discover in the morning.

Put together, that covers the two outcomes you care about: my job is done, or my Mac backed off to stay within limits. Either way you find out in seconds, on the device already in your pocket. Where you leave the Mac, and whether it has airflow, is still on you; an alert tells you what happened, it does not cool the chassis.

Coba ini ketimbang melawan tidur saat layar tertutup

LidRun menjaga pekerjaan Anda tetap jalan saat layar tertutup, dengan perlindungan baterai dan suhu bawaan.

Unduh untuk macOS

Sering ditanyakan

Do I have to create my own Telegram bot?

No. LidRun uses a shared LidRun Telegram bot. You message the bot and LidRun fetches your Chat ID for you, so there is no token to manage and no bot to register.

Which channels can LidRun send alerts to?

A shared LidRun Telegram bot, Discord and Slack incoming-webhook URLs, a generic webhook that sends JSON with a title, body, and event, plus push via ntfy.sh (free) or Pushover (paid).

Will the alert tell me whether my command succeeded?

Yes. When you run a command under LidRun, it reports the exit code and duration on exit, so the alert reflects whether the run finished cleanly, not just that it stopped.

Does LidRun also alert me about safety events?

Yes. If LidRun lets the Mac sleep because of thermal pressure or a low battery threshold, it can notify you, so you hear about a safety backoff while you are away rather than later.

Get Notified When a Long Mac Job or Build Finishes