Re: [PATCH v3 3/4] maintenance: `git maintenance run` learned `--scheduler=<scheduler>`
On 21/05/21 05.13, Lénaïc Huard wrote:
Show 6 quoted lines
> Depending on the system, different schedulers can be used to schedule
> the hourly, daily and weekly executions of `git maintenance run`:
> * `launchctl` for MacOS,
> * `schtasks` for Windows and
> * `crontab` for everything else.
>
...and soon to be supported systemd timers.
Show 13 quoted lines
> `git maintenance run` now has an option to let the end-user explicitly
> choose which scheduler he wants to use:
> `--scheduler=auto|crontab|launchctl|schtasks`.
>
> When `git maintenance start --scheduler=XXX` is run, it not only
> registers `git maintenance run` tasks in the scheduler XXX, it also
> removes the `git maintenance run` tasks from all the other schedulers to
> ensure we cannot have two schedulers launching concurrent identical
> tasks.
>
> The default value is `auto` which chooses a suitable scheduler for the
> system.
>
Until this point, we haven't supported systemd timers yet, but in the next
patch we add support for it. So the patch description looks OK.
--
An old man doll... just what I always wanted! - Clara