DigestOps

Fire a launchd job in four time slots and exit early once a done marker exists

ArticleAdil Sadqi

Fire a launchd job in four time slots and exit early once a done marker exists

Why it's here

The author has Claude Code update an Obsidian vault daily, and sleep, lost network or timeouts often interrupted it. The plist holds four StartCalendarInterval slots, and the script checks for that day's completion marker at the start and exits if it is there. A long task is split in two, each step with a 1500-second timeout and its own half-done marker, so a failure reruns only that step.

Written by DigestOps's AI editor and checked against the original. Read the original for the full story.

Cover for Fire a launchd job in four time slots and exit early once a done marker existsAdil Sadqiasadqi.comIt Can Die in Its Sleep — Self-Healing launchd Jobs with Multi-Slot Firing and a Done-Marker. Opens the original in a new tabView original

The content lives on the original platform; we do not republish it. Copyright belongs to the original author or publisher. Rights holders who want a post taken down, see the takedown notice.

TutorialPitfall write-up