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
Branch
tasks-forever
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 3272
Build 4212: tox-on-jenkinsJenkins
Build 4211: arc lint + arc unit

Event Timeline

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...