git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] maintenance: disable cron on macOS

From
Derrick Stolee <stolee@gmail.com>
Date
Nov 10, 2021, 21:06 UTC
Message-ID
<4996fb32-8262-b2af-b78a-c337041d897a@gmail.com>
In-Reply-To
<211110.86y25vpw1y.gmgdl@evledraar.gmail.com>
On 11/10/2021 3:56 PM, Ævar Arnfjörð Bjarmason wrote:
Show 11 quoted lines
> 
> On Wed, Nov 10 2021, Derrick Stolee via GitGitGadget wrote:
> 
>> From: Derrick Stolee <dstolee@microsoft.com>
>>
>> In eba1ba9 (maintenance: `git maintenance run` learned
>> `--scheduler=<scheduler>`, 2021-09-04), we introduced the ability to
>> specify a scheduler explicitly. This led to some extra checks around
>> whether an alternative scheduler was available. This added the
>> functionality of removing background maintenance from schedulers other
>> than the one selected.
Note this last sentence.
Show 10 quoted lines
> I haven't tested, but isn't a smaller fix for this to just re-arrange
> the array where we declare the methods to check to have "cron" come
> after all the OS-specific ones, or at least after launchctl?
> 
> I.e. we already have an ifdef to pick launchctl and never cron for OSX
> on "start", so this is only for the case where we loop through the array
> looking for something to select.
> 
> That wouldn't work if that user can run cron, but can't use launchctl at
> all, but in that case won't they be happy to get the prompt?
 
Your suggestion doesn't work because this isn't about picking cron
over launchctl, it's about disabling cron (and systemd or whatever is
available) when launchctl was selected.

Thanks, -Stolee

Previous: Ævar Arnfjörð Bjarmason
Message 6 of 6 in “maintenance: disable cron on macOS”
  1. maintenance: disable cron on macOSDerrick Stolee via GitGitGadget, Nov 10, 2021
  2. Johannes SchindelinNov 10, 2021
  3. Junio C HamanoNov 10, 2021
  4. Derrick StoleeNov 10, 2021
  5. Ævar Arnfjörð BjarmasonNov 10, 2021
  6. Derrick StoleeNov 10, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.