Thread (119 messages) 119 messages, 15 authors, 2021-09-27

Re: [PATCH v3 3/4] maintenance: `git maintenance run` learned `--scheduler=<scheduler>`

From: Bagas Sanjaya <hidden>
Date: 2021-05-21 09:53:52

On 21/05/21 05.13, Lénaïc Huard wrote:
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.
`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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help