HomeSoftware Heritage

tasks: Fix and simplify implementation

Description

tasks: Fix and simplify implementation

Recent changes in swh-scheduler add new parameters to the celery tasks
produced from swh.scheduler.model.ListedOrigin instances.

Those new parameters were not properly handled in the celery tasks
implementation for svn loading but also in some svn loader ones.

So ensure to handle any new parameters by not hardcoding the expected
ones in task signatures but also allowing any extra keyword parameters
in loader constructors.

Also remove explicit setting of visit_date if none has been provided
as task parameter as it is already handled in loader constructor.

Related to T4187

Details

Provenance
anlambertAuthored on Apr 26 2022, 5:00 PM
anlambertPushed on Apr 27 2022, 10:43 AM
Differential Revision
D7690: tasks: Fix and simplify implementation
Parents
rDLDSVN91dc7ad9d84e: Bump mypy to v0.942
Branches
Unknown
Tags
Unknown
Tasks
T4187: Pass forge type to loaders
Build Status
Buildable 28870
Build 45123: test-and-buildJenkins console · Jenkins