David Douard
f670de298f
Remove debug logging from tasks' code
...
since this is now handled by the SWHTask itself.
2019-01-17 13:58:29 +01:00
David Douard
e6a4ae7619
flake8: remove unneeded imports
2019-01-15 18:17:20 +01:00
David Douard
f46f3e2015
Remove explicit setting of the task base class
...
since it's now the default base class in swh-scheduler (>= 0.0.39)
2019-01-10 09:55:17 +01:00
David Douard
33ec762bd4
Add tests for debian tasks
2019-01-08 10:35:33 +01:00
David Douard
0583b0e685
Add a 'ping' task for every lister.
2019-01-08 10:35:33 +01:00
David Douard
2d1f0643ff
Heavy refactor of the task system
...
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.
2019-01-08 10:33:32 +01:00
Antoine R. Dumont (@ardumont)
d88f1b60c9
core/lister: Make the tasks take an explicit lister_args argument
...
Avoid eating *all* arbitrary arguments and passing them along to the
new_lister method.
2018-07-17 15:48:48 +02:00
Antoine R. Dumont (@ardumont)
4c4aa0ead2
swh.lister: Make LISTER_NAME a class attribute
...
swh.lister.gitlab: make the 'instance' a constructor parameter
2018-07-11 17:43:41 +02:00
Nicolas Dandrimont
e477a46c60
Add missing __init__.py files
...
Helps with tests autodetection
2017-10-30 16:38:27 +01:00
Nicolas Dandrimont
6a7b0f802e
swh.lister.debian.tasks: add task_queue attribute
2017-10-30 15:08:37 +01:00
Nicolas Dandrimont
458a9e6733
Add a new DebianListerTask
2017-10-30 14:19:43 +01:00
Nicolas Dandrimont
c6e455ce9b
debian.lister: use get_packages() method on the snapshot to list packages
...
Allows to list the packages outside of lister context (e.g. for loader tests)
2017-10-10 16:37:15 +02:00
Nicolas Dandrimont
d2a71ac980
debian.lister: make file size an integer rather than a string
2017-10-10 16:36:58 +02:00
Sushant Sushant
83ebb95705
Add a lister for Debian-like package archives
...
This work is based on Sushant's internship and D229.
2017-10-04 12:43:09 +02:00