https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 8e125f1d98444336dbdf74a8cee54d119b57cb4a authored by Antoine R. Dumont (@ardumont) on 07 December 2022, 15:57:32 UTC, committed by Antoine R. Dumont (@ardumont) on 08 December 2022, 17:51:45 UTC
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
1 parent 1c34e98
History
Tip revision: 8e125f1d98444336dbdf74a8cee54d119b57cb4a authored by Antoine R. Dumont (@ardumont) on 07 December 2022, 15:57:32 UTC
cli.add_forge_now: Open `register-lister` with sensible defaults
Tip revision: 8e125f1
File Mode Size
data
docs
sql
swh
.git-blame-ignore-revs -rw-r--r-- 140 bytes
.gitignore -rw-r--r-- 129 bytes
.pre-commit-config.yaml -rw-r--r-- 882 bytes
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 14 bytes
LICENSE -rw-r--r-- 34.3 KB
LICENSE.Celery -rw-r--r-- 2.6 KB
MANIFEST.in -rw-r--r-- 154 bytes
Makefile -rw-r--r-- 163 bytes
README.md -rw-r--r-- 292 bytes
conftest.py -rw-r--r-- 664 bytes
mypy.ini -rw-r--r-- 750 bytes
pyproject.toml -rw-r--r-- 237 bytes
pytest.ini -rw-r--r-- 62 bytes
requirements-journal.txt -rw-r--r-- 12 bytes
requirements-simulator.txt -rw-r--r-- 21 bytes
requirements-swh.txt -rw-r--r-- 47 bytes
requirements-test.txt -rw-r--r-- 141 bytes
requirements.txt -rw-r--r-- 509 bytes
setup.cfg -rw-r--r-- 342 bytes
setup.py -rwxr-xr-x 2.5 KB
tox.ini -rw-r--r-- 1.6 KB

README.md

back to top