HomeSoftware Heritage

phabricator/tasks: Fix task function return type

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

phabricator/tasks: Fix task function return type

Previously, the following error was raised when the task has finished
its execution: "Object of type ListerStats is not JSON serializable".

So ensure ListerStats object gets converted to dict before returning it.

Also add missing test for task function.

Details

Provenance
anlambertAuthored on Jan 11 2021, 4:27 PM
anlambertPushed on Jan 11 2021, 6:51 PM
Differential Revision
D4836: phabricator/tasks: Fix issue and add optional api_token parameter
Build Status
Buildable 18277
Build 28215: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.