HomeSoftware Heritage

common/origin_save: Prevent erroneous save code now status overriding

Description

common/origin_save: Prevent erroneous save code now status overriding

Loading status for a save code now request is first retrieved from the
scheduler database.

When a visit date for a save code now request has been found, the visit
status is then checked to possibly update the final status of the
request to failed (when an origin is not found for instance).

However to avoid sending too many costly queries to the storage,
the visit date and status are only checked once and stored to
swh-web database.

So ensure to not override a final loading task status (succeeded or
failed) to avoid invalid save code now request reporting.

Details

Provenance
anlambertAuthored on Mar 29 2021, 6:14 PM
anlambertPushed on Mar 30 2021, 11:19 AM
Differential Revision
D5378: common/origin_save: Prevent erroneous save code now status overriding
Parents
rDWAPPSce7dceb4d98f: common/origin_save: Add typing information
Branches
Unknown
Tags
Unknown
Build Status
Buildable 20338
Build 31573: test-and-buildJenkins console · Jenkins