Skip to content

Allow configuring update-check frequency - #615

Open
harlanhaskins wants to merge 1 commit into
swiftlang:mainfrom
harlanhaskins:harlan/postage-paid-by-sender
Open

harlanhaskins wants to merge 1 commit into
swiftlang:mainfrom
harlanhaskins:harlan/postage-paid-by-sender

Conversation

@harlanhaskins

Copy link
Copy Markdown

By default, this changes the frequency to once per hour. It tracks the last update time as a timestamp file and updates its mtime when it actually checks.

This adds a new key to config.json, updateCheck.

It accepts:

  • "never"
  • "always"
  • {"every": <seconds (int)>}
  • "default" (hourly, equivalent to {"every": 3600})

By default, this changes the frequency to once per hour. It tracks the last
update time as a timestamp file and updates its mtime when it actually
checks.

This adds a new key to `config.json`, `updateCheck`.

It accepts:
  - `"never"`
  - `"always"`
  - `{"every": <seconds (int)>}`
  - "default" (hourly, equivalent to `{"every": 3600}`)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant