Skip to content

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

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

swh scheduler add-forge-now \
( --production | --staging \ # to list only enabled | disabled origins )
  register-lister \
    gitea \
    url=https://git.afpy.org/api/v1/

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

Test Plan

build happy

https://jenkins.softwareheritage.org/view/swh%20master%20(draft)/job/DDOC/job/build-on-diff/287/SWH_20sysadmin_20Documentation/


Migrated from D8940 (view on Phabricator)

Merge request reports