HomeSoftware Heritage

backend: Make create_task_type idempotent

Description

backend: Make create_task_type idempotent

There is no reason to raise an error when a task type has already been
created and it enables to stop leaking psycopg2 IntegrityError exception
as part of the scheduler interface.

Details

Provenance
anlambertAuthored on Feb 17 2020, 4:55 PM
anlambertPushed on Feb 19 2020, 2:11 PM
Differential Revision
D2683: Make create_task_type idempotent
Parents
rDSCHb92e3fd0b2bd: Use swh-storage validation proxy.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 10685
Build 16024: test-and-buildJenkins