https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 506f78c827e37ff841140d6f44ea66f96d6a8cb0 authored by Antoine R. Dumont (@ardumont) on 25 August 2021, 16:15:06 UTC, committed by Antoine R. Dumont (@ardumont) on 26 August 2021, 08:24:11 UTC
Queue positions are date and the current next_position_offset used to compute the new
queue position was not bounded. This has the side-effect of making overflow error.

This commit adapts the journal client computations to limit such next_position_offset to
10. This value was chosen because above that exponent the dates overflow (and we are way
in the future already).

Related to T3502
1 parent 28ae1d8
Raw File
Tip revision: 506f78c827e37ff841140d6f44ea66f96d6a8cb0 authored by Antoine R. Dumont (@ardumont) on 25 August 2021, 16:15:06 UTC
journal_client: Ensure queue position does not overflow
Tip revision: 506f78c
requirements.txt
# Add here external Python modules dependencies, one per line. Module names
# should match https://pypi.python.org/pypi names. For the full spec or
# dependency lines, see https://pip.readthedocs.org/en/1.1/requirements.html

attrs
attrs-strict
celery >= 4.3, != 5.0.3
click
elasticsearch > 5.4
flask
humanize
pika >= 1.1.0
psycopg2
pyyaml
requests
setuptools
typing-extensions
back to top