Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions alws/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Settings(BaseSettings):
pulp_user: str = 'admin'
pulp_password: str = 'admin'
pulp_export_path: str = '/srv/exports'
pulp_semaphore_limit: int = 20
pulp_database_url: str = (
'postgresql+psycopg2://postgres:password@pulp:5432/pulp'
)
Expand Down
2 changes: 1 addition & 1 deletion alws/utils/pulp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from alws.utils.file_utils import hash_content, hash_file
from alws.utils.ids import get_random_unique_version

PULP_SEMAPHORE = asyncio.Semaphore(5)
PULP_SEMAPHORE = asyncio.Semaphore(settings.pulp_semaphore_limit)


class PulpClient:
Expand Down
Loading