Skip to content
Snippets Groups Projects
  1. Feb 19, 2025
  2. Feb 14, 2025
  3. Nov 22, 2024
  4. Oct 30, 2024
  5. Oct 18, 2024
  6. Sep 06, 2024
  7. Aug 30, 2024
  8. Aug 27, 2024
  9. May 15, 2024
  10. Apr 11, 2024
  11. Apr 04, 2024
  12. Apr 02, 2024
    • Antoine Lambert's avatar
      cli: Prevent YAML wrapping in help displayed by Click · e8b15c82
      Antoine Lambert authored and Antoine Lambert's avatar Antoine Lambert committed
      The default behavior of Click is to rewrap text based on the width of
      the terminal but as a consequence it makes the sample YAML config for
      the scrubber displayed in command help quite unreadable as indentation
      is lost.
      
      So use \b markers in docstring to ensure proper display of the YAML
      config by Click.
      e8b15c82
  13. Mar 29, 2024
  14. Mar 25, 2024
  15. Mar 22, 2024
  16. Mar 13, 2024
  17. Feb 06, 2024
  18. Feb 05, 2024
  19. Feb 02, 2024
  20. Dec 05, 2023
  21. Dec 03, 2023
  22. Nov 30, 2023
  23. Nov 24, 2023
  24. Oct 17, 2023
    • David Douard's avatar
      Add a cli command to get statistics for a given config entry · c0a4d44b
      David Douard authored
      As well as a command to list partitions being checked.
      
      For example:
      
      ```
      $ swh scrubber check stats snapshot_16 -j
      {
        "config": {
          "name": "snapshot_16",
          "datastore": {
            "package": "storage",
            "cls": "postgresql",
            "instance": "postgresql:///?service=swh-storage"
          },
          "object_type": "snapshot",
          "nb_partitions": 65536,
          "check_hashes": true,
          "check_references": true
        },
        "min_duration": 0.002196,
        "max_duration": 0.107398,
        "avg_duration": 0.005969,
        "checked_partition": 65536,
        "running_partition": 0,
        "missing_object": 0,
        "missing_object_reference": 0,
        "corrupt_object": 0
      }
      
      $ swh scrubber check running cfg1
      
      Running partitions for cfg1 [id=1, type=snapshot]:
      0:	running since today (20 minutes)
      
      ```
      c0a4d44b
  25. Oct 16, 2023
Loading