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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

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.