HomeSoftware Heritage

tasks: Simplify implementation and make visit_date parameter optional

Description

tasks: Simplify implementation and make visit_date parameter optional

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

So ensure to handle any new parameters by not hardcoding the expected
ones in task signatures.

Rename date parameter to visit_date in from disk loader tasks and
make it non mandatory.

Add new tests checking task parameters produced from ListedOrigin
instances do no raise error when attempting to create a git loader.

Related to T4187

Details

Provenance
anlambertAuthored on Apr 27 2022, 11:01 AM
anlambertPushed on Apr 27 2022, 1:41 PM
Differential Revision
D7694: tasks: Simplify implementation and make visit_date parameter optional
Parents
rDLDGb34d31e60009: Bump mypy to v0.942
Branches
Unknown
Tags
Unknown
Tasks
T4187: Pass forge type to loaders
Build Status
Buildable 28881
Build 45142: test-and-buildJenkins console · Jenkins