Max partition count not respected
When all the partitions of an object are scrubbed, the process stops but new partitions are still created in database
swh-scrubber=# select * from checked_partition where partition_id>4096;
config_id | partition_id | start_date | end_date
-----------+--------------+-------------------------------+----------
12 | 4097 | 2023-11-09 23:03:02.419278+00 |
12 | 4098 | 2023-11-09 23:03:23.165528+00 |
12 | 4099 | 2023-11-09 23:03:24.853534+00 |
12 | 4100 | 2023-11-09 23:03:45.593075+00 |
12 | 4101 | 2023-11-09 23:03:46.949021+00 |
12 | 4102 | 2023-11-09 23:04:07.026095+00 |
12 | 4103 | 2023-11-09 23:04:09.256796+00 |
12 | 4104 | 2023-11-09 23:04:32.762757+00 |
12 | 4105 | 2023-11-09 23:05:00.852913+00 |
12 | 4106 | 2023-11-09 23:05:23.233635+00 |
(10 rows)