Skip to content

Commit

Permalink
fix: change macOS launchd plist to use StartInterval and RunAtLoad (#52)
Browse files Browse the repository at this point in the history
This should improve the stability of the background jobs. Previously, KeepAlive and ThrottleInterval was used, which caused the background job to be suspended after about one day
  • Loading branch information
MShekow authored Sep 20, 2023
1 parent 20847e3 commit a7f3898
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class MacOsBackgroundScheduler(AbstractBackgroundScheduler):

LAUNCHD_AGENT_DICT = {
"Label": f"com.focustime{get_environment_suffix()}",
"KeepAlive": True,
"ThrottleInterval": 60 # seconds
"StartInterval": 60, # seconds
"RunAtLoad": True
}
LAUNCHD_AGENT_FILE = Path.home() / "Library" / "LaunchAgents" / f"com.focustime{get_environment_suffix()}.plist"

Expand Down

0 comments on commit a7f3898

Please sign in to comment.