Above that value, we hit date out of range issues.
```
In [10]: utcnow() + timedelta(days=4 ** 10)
Out[10]: datetime.datetime(4892, 7, 20, 16, 13, 7, 345452, tzinfo=datetime.timezone.utc)
In [11]: utcnow() + timedelta(days=4 ** 11)
---------------------------------------------------------------------------
OverflowError Traceback (most recent call last)
<ipython-input-11-42dc34eb0713> in <module>
----> 1 utcnow() + timedelta(days=4 ** 11)
OverflowError: date value out of range
```
We already have those exponents values too high in db (staging, prod: 14 [1]).
TODO:
- Update tests
- Add migration script to actually bound such values in staging/production
Related to T3502
[1]
```
18:19:22 swh-scheduler@db1:5432=> select max(next_position_offset) from origin_visit_stats where next_position_offset > 10;
+-----+
| max |
+-----+
| 14 |
+-----+
(1 row)
Time: 145.075 ms
18:19:40 softwareheritage-scheduler@belvedere:5432=> select max(next_position_offset) from origin_visit_stats where next_position_offset > 10;
+-----+
| max |
+-----+
| 14 |
+-----+
(1 row)
Time: 83509.421 ms (01:23.509)
```