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

This revision is now accepted and ready to land.Jan 14 2019, 12:25 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

Add missing part for the server side of the set_status_tasks endpoint

This revision was automatically updated to reflect the committed changes.