Page MenuHomeSoftware Heritage

Add a new 'task respawn' command
ClosedPublic

Authored by douardda on Jan 14 2019, 11:44 AM.

Details

Summary
  • Add a 'next_run' argument to the SchedulerBackend.set_status_tasks method so this method can be used to respawn a task immediately.
  • Add a new 'task respawn' command that allows to respawn any task immediately (or any later date).

Depends on D934

Diff Detail

Repository
rDSCH Scheduling utilities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Jan 14 2019, 11:44 AM
vlorentz accepted this revision.Jan 14 2019, 12:25 PM
This revision is now accepted and ready to land.Jan 14 2019, 12:25 PM
ardumont accepted this revision.Jan 14 2019, 12:27 PM
ardumont added a subscriber: ardumont.
ardumont added inline comments.
swh/scheduler/cli.py
349 ↗(On Diff #2959)

this date

354 ↗(On Diff #2959)

given

douardda updated this revision to Diff 2975.Jan 14 2019, 3:23 PM

Add missing part for the server side of the set_status_tasks endpoint

douardda updated this revision to Diff 2994.Jan 15 2019, 3:06 PM

rebased and wording

This revision was automatically updated to reflect the committed changes.