ArticleAdil Sadqi
Fire a launchd job in four time slots and exit early once a done marker exists
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.

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.