From: Bagas Sanjaya Date: Fri, 21 May 2021 09:52:21 GMT Subject: Re: [PATCH v3 3/4] maintenance: `git maintenance run` learned `--scheduler=` Message-ID: <31eda7fa-5935-91e8-0059-09188cb30511@gmail.com> In-Reply-To: <20210520221359.75615-4-lenaic@lhuard.fr> 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