Add a 'swh scrubber check stalled` command listing stalled partitions
For a given configuration (hence sotrage, object_type and partition scheme) list partitions that have a start_date but no end_date for a long enough time. By default, it will compute the delay for a partition to be considered as stalled based on the 10 last partitions checked for the given configuration.
Showing
- requirements.txt 1 addition, 0 deletionsrequirements.txt
- swh/scrubber/cli.py 59 additions, 0 deletionsswh/scrubber/cli.py
- swh/scrubber/db.py 67 additions, 0 deletionsswh/scrubber/db.py
- swh/scrubber/tests/test_cli.py 79 additions, 0 deletionsswh/scrubber/tests/test_cli.py
- swh/scrubber/tests/test_db.py 35 additions, 0 deletionsswh/scrubber/tests/test_db.py
Loading
Please register or sign in to comment