HomeSoftware Heritage

sql/swh-scheduler: Make the create_tasks call idempotent

Description

sql/swh-scheduler: Make the create_tasks call idempotent

This in effect returns all rows associated with the tasks asked for
creation (the input). If tasks were already created, we only return
them. If they were not created, we create and return them.

Details

Provenance
ardumontAuthored on Jul 27 2018, 5:08 PM
ardumontPushed on Jul 27 2018, 5:30 PM
Parents
rDSCH9140960fe2b8: swh.scheduler.utils: Open create_task_dict function
Branches
Unknown
Tags
Unknown