Page MenuHomeSoftware Heritage

Introduce a `swh scheduler origin grab-next` cli
ClosedPublic

Authored by vlorentz on Jan 12 2021, 4:18 PM.

Details

Summary

This returns, as CSV, the next origins to be visited according to the
passed scheduling policy.

Test Plan

new tests added

Event Timeline

Build is green

Patch application report for D4844 (id=17152)

Rebasing onto b13cb1f2de...

Current branch diff-target is up to date.
Changes applied before test
commit 3c15a60589efdb5268acbe9934e32a5cac2f47a0
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Tue Jan 12 16:16:31 2021 +0100

    Introduce a `swh scheduler origin grab-next` cli
    
    This returns, as CSV, the next origins to be visited according to the
    passed scheduling policy.

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

Build is green

Patch application report for D4844 (id=17182)

Rebasing onto a62003397d...

Current branch diff-target is up to date.
Changes applied before test
commit d1393c54da99c45175dd0b6a69734d17fc887960
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Tue Jan 12 16:16:31 2021 +0100

    Introduce a `swh scheduler origin grab-next` cli
    
    This returns, as CSV, the next origins to be visited according to the
    passed scheduling policy.

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

anlambert added a subscriber: anlambert.

Looks good to me. TIL typing.TYPE_CHECKING.

swh/scheduler/cli/origin.py
5

nitpick: missing line break between license header and import statement.

This revision is now accepted and ready to land.Jan 14 2021, 11:20 AM

Build is green

Patch application report for D4844 (id=17212)

Rebasing onto a62003397d...

Current branch diff-target is up to date.
Changes applied before test
commit 5d7b002ac403565e348ac8fe4dd56d015cf29cae
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Tue Jan 12 16:16:31 2021 +0100

    Introduce a `swh scheduler origin grab-next` cli
    
    This returns, as CSV, the next origins to be visited according to the
    passed scheduling policy.

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

This revision was automatically updated to reflect the committed changes.