Page MenuHomeSoftware Heritage

swh.indexer: Let task reschedule itself through the scheduler
ClosedPublic

Authored by ardumont on Oct 26 2018, 8:07 PM.

Details

Summary

... Using the retries_left inherently associated to a scheduled task.

Related T1290

Depends on D609 (~> not really but rebase on it when it's merged ;)

Test Plan

tox

Diff Detail

Repository
rDCIDX Metadata indexer
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1958
Build 2362: arc lint + arc unit

Event Timeline

rescheduling_task is still used in swh/indexer/rehash.py

This revision now requires changes to proceed.Oct 29 2018, 9:09 AM
  • swh.indexer.rehash: Let task reschedule itself
This revision is now accepted and ready to land.Oct 29 2018, 9:25 AM

Rebase

  • swh.indexer: Let task reschedule itself through the scheduler
  • swh.indexer.rehash: Let task reschedule itself
This revision was automatically updated to reflect the committed changes.