Page MenuHomeSoftware Heritage

Heavy refactor of the task system
ClosedPublic

Authored by douardda on Jan 8 2019, 10:57 AM.

Details

Reviewers
None
Group Reviewers
Reviewers
Commits
rDLS2d1f0643ffb6: Heavy refactor of the task system
Summary

Get rid of the class based task definition in favor of decorator-based
task declarations.

Doing so, we can get rid of core/tasks.py

Task names are explicitely set to keep compatibility with task
definitions in schedulers' database.

This also add debug statements at the beginning and end of each lister
task.

Diff Detail

Repository
rDLS Listers
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 8 2019, 10:57 AM

There's a lot of common code; logging should be moved to SWHTask.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 10 2019, 3:57 PM
This revision was automatically updated to reflect the committed changes.

There's a lot of common code; logging should be moved to SWHTask.

I'd rather not for now, even if that means a bit of code duplication...