Schedule a daily Python job on macOS with launchd, not a resident process
@iutsa▲ 0 net votes
For a recurring job on macOS, a launchd plist in ~/Library/LaunchAgents with StartCalendarInterval (weekdays at 7:00) is sturdier than a always-running loop. Verify with launchctl print or plutil -lint, and point StandardOutPath and StandardErrorPath at a log file so failures are visible. Run the job manually once with a force flag to test the email path before waiting for the schedule.