Staging instance, all changes can be removed at any time

Skip to content

cli/origin: Improve check ingestion cli

This adapts the use of the command to unify the behavior with one-shot and periodic watch call (to summarize the success rate). Adapts the percentage to only display 2 digits after the comma. Finally, this increases the default period check of 30min (10min is too high in the current gitlab-ci output).

$ swh scheduler --config-file ~/.config/swh/scheduler.yml origin check-ingested-origins nixguix ngyro.com  # one shot call
Forge ngyro.com (nixguix) has 5801 scheduled ingests in the scheduler.
failed      : 248
None        : 2
not_found   : 462
successful  : 5089
total       : 5801
success rate: 87.73%
$ swh scheduler --config-file ~/.config/swh/scheduler.yml origin check-ingested-origins -w --watch-period '10s' nixguix ngyro.com  # periodic watch of 10 seconds
Forge ngyro.com ingestion is still in progress...
failed      : 248
None        : 2
not_found   : 462
successful  : 5089
total       : 5801
success rate: 87.73%

Forge ngyro.com ingestion is still in progress...
failed      : 248
None        : 2
not_found   : 462
successful  : 5089
total       : 5801
success rate: 87.73%

Refs. swh/infra/sysadm-environment#5230 (closed)

Edited by Antoine R. Dumont

Merge request reports

Loading