File tree Expand file tree Collapse file tree
backend/application/core/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,12 +37,7 @@ class DuplicateCandidate(NamedTuple):
3737DuplicateTypes = dict [tuple [int , int ], str ]
3838
3939
40- # The lock serializes all recalculations, so that concurrent imports cannot write
41- # potential duplicates for the same observations at the same time. If the lock cannot be
42- # acquired, Huey retries the task later. The retries have to be high enough to bridge
43- # the recalculations of the other tasks waiting for the lock.
44- @on_commit_task (retries = 5 , retry_delay = 60 )
45- @lock_task ("find_potential_duplicates_lock" )
40+ @on_commit_task ()
4641def find_potential_duplicates (product : Product , branch : Optional [Branch ], service : Optional [Service ]) -> None :
4742 try :
4843 observations = Observation .objects .filter (product = product , branch = branch , origin_service = service )
You can’t perform that action at this time.
0 commit comments