Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pyartcd/pyartcd/locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

# Defines the pipeline locks managed by Redis
class Lock(enum.Enum):
"""Redis lock-name templates used to serialize pyartcd pipelines."""

OLM_BUNDLE = 'lock:olm-bundle:{version}'
OLM_BUNDLE_KONFLUX = 'lock:olm-bundle-konflux:{version}'
MIRRORING_RPMS = 'lock:mirroring-rpms:{version}'
Expand All @@ -35,6 +37,7 @@ class Lock(enum.Enum):
SYNC_CI_IMAGES = 'lock:sync-ci-images:{version}'
OPEN_RECONCILIATION_PRS = 'lock:open-reconciliation-prs:{version}'
OPEN_RECONCILIATION_PRS_LAYERED = 'lock:open-reconciliation-prs-layered:{group}'
LAYERED_PRODUCT_SHIPMENT = 'lock:layered-product-shipment:{group}:{assembly}'


class Keys(enum.Enum):
Expand Down Expand Up @@ -173,6 +176,11 @@ class Keys(enum.Enum):
'retry_delay_min': 0.1,
'lock_timeout': DEFAULT_LOCK_TIMEOUT,
},
Lock.LAYERED_PRODUCT_SHIPMENT: {
'retry_count': 36000,
'retry_delay_min': 0.1,
'lock_timeout': DEFAULT_LOCK_TIMEOUT,
},
}


Expand Down
Loading
Loading