Page MenuHomeSoftware Heritage

recurrent visits: use policy weights instead of ratios
ClosedPublic

Authored by olasd on Oct 29 2021, 4:02 PM.

Details

Summary

The ratios weren't checked for normalization; using relative weights
explicitly ensures that the settings won't be misinterpreted.

Depends on D6587

Diff Detail

Repository
rDSCH Scheduling utilities
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 24826
Build 38768: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 38767: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D6588 (id=23949)

Could not rebase; Attempt merge onto 50d7fd7ff4...

Updating 50d7fd7..00ff02e
Fast-forward
 swh/scheduler/celery_backend/recurrent_visits.py | 92 +++++++++++++-----------
 1 file changed, 51 insertions(+), 41 deletions(-)
Changes applied before test
commit 00ff02eab9c9e03ac5cc7627c48c59ac181e8a1e
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Fri Oct 29 15:58:31 2021 +0200

    recurrent visits: use policy weights instead of ratios
    
    The ratios weren't checked for normalization; using relative weights
    explicitly ensures that the settings won't be misinterpreted.

commit 7f434c3fbf0649519fce610f8c92cba70095693e
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Fri Oct 29 15:44:56 2021 +0200

    Improve docs rendering for recurrent visits scheduler

See https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/494/ for more details.

olasd requested review of this revision.Oct 29 2021, 4:05 PM
This revision is now accepted and ready to land.Nov 17 2021, 10:38 AM