https://forge.softwareheritage.org/source/swh-scheduler.git
Revision c92ead5875ecfd96a164eec1803398adec6eb8a8 authored by Nicolas Dandrimont on 21 January 2021, 16:31:43 UTC, committed by Valentin Lorentz on 26 January 2021, 12:20:39 UTC
The earlier implementation would just schedule new visits for origins
forever, regardless of whether they were already scheduled or not.
1 parent 2b39cbc
Raw File
Tip revision: c92ead5875ecfd96a164eec1803398adec6eb8a8 authored by Nicolas Dandrimont on 21 January 2021, 16:31:43 UTC
grab_next_visits: don't re-schedule visits too fast
Tip revision: c92ead5
conftest.py
# Copyright (C) 2020  The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information


from hypothesis import settings

# define tests profile. Full documentation is at:
# https://hypothesis.readthedocs.io/en/latest/settings.html#settings-profiles
settings.register_profile("fast", max_examples=5, deadline=5000)
settings.register_profile("slow", max_examples=20, deadline=5000)


pytest_plugins = ["swh.scheduler.pytest_plugin", "swh.core.db.pytest_plugin"]
back to top