> About your second comment, As I merged your branch, the table is locked at the beginning of the _run method, so it should be enought to avoid the problem of creating 2 bindings at the same time no?
No, the table is not locked. The 'magento.res.partner' *record* that is exported is locked. Then, when it creates a 'magento.address', only a unique constraint on 'magento.address' can prevent 2 concurrent jobs to create the same 'magento.address'.
> About your second comment, As I merged your branch, the table is locked at the beginning of the _run method, so it should be enought to avoid the problem of creating 2 bindings at the same time no?
No, the table is not locked. The 'magento. res.partner' *record* that is exported is locked. Then, when it creates a 'magento.address', only a unique constraint on 'magento.address' can prevent 2 concurrent jobs to create the same 'magento.address'.