Skip to content

Race condition when importing the same product multiple times (+ speedup opportunity) #820

Description

@kr1zz

Process A starts importing a product
after a while
Process B (and possible n others) starts importing the same product in the same workspace

How is this handled? We should make sure to let the older instance complete, keep the new DOWLOAD instance (B and others) in WAITING, and as soon as the first completes, mark B (and others) as DONE.

This is also an opportunity for a marginal speedup, because WAITING jobs free a slot in the queue

Metadata

Metadata

Assignees

Labels

P3Priority 3backendbugjavaPull requests that update Java code

Type

Fields

No fields configured for Bug.

Projects

Status
Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions