HomeSoftware Heritage

cli.add_forge_now: Open `register-lister` with sensible defaults

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

cli.add_forge_now: Open register-lister with sensible defaults

This will ease scheduling of new add-forge-now requests, on:

  • staging: this will list a subset of disabled origins once
  • production: this will register recurring tasks (full, incremental if any) to list that new forge

This also unifies the previous subcommand schedule-first-visits with the --preset flag.

So, the following would be enough to list appropriately in staging/production:

swh scheduler add-forge-now \
( --preset [production|staging] \ # to enable a pre-defined set of rules )
  register-lister \
    gitea \
    url=https://git.afpy.org/api/v1/

Related to https://gitlab.softwareheritage.org/infra/sysadm-environment/-/issues/4674

Details

Provenance
ardumontAuthored on Dec 7 2022, 4:57 PM
ardumontPushed on Dec 12 2022, 11:37 AM
Build Status
Buildable 33209
Build 52066: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.