Add mutex lock file path to registry CLI wrapper class (#958)
Lint Checks / Run linter (push) Failing after 4s
Details
Publish / Build and publish (push) Failing after 5s
Details
Deploy Test / Run deploy test suite (push) Failing after 3s
Details
Webapp Test / Run webapp test suite (push) Failing after 3s
Details
Smoke Test / Run basic test suite (push) Failing after 2s
Details
Lint Checks / Run linter (push) Failing after 4s
Details
Publish / Build and publish (push) Failing after 5s
Details
Deploy Test / Run deploy test suite (push) Failing after 3s
Details
Webapp Test / Run webapp test suite (push) Failing after 3s
Details
Smoke Test / Run basic test suite (push) Failing after 2s
Details
Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75) Follows https://git.vdb.to/cerc-io/stack-orchestrator/pulls/957 Reviewed-on: https://git.vdb.to/cerc-io/stack-orchestrator/pulls/958 Reviewed-by: ashwin <ashwin@noreply.git.vdb.to> Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>roysc/deploy-create-pass-cluster v1.1.0-5f8e809-202410280603
parent
4a7df2de33
commit
5f8e809b2d
|
|
@ -10,7 +10,7 @@ def registry_mutex():
|
||||||
@wraps(func)
|
@wraps(func)
|
||||||
def wrapper(self, *args, **kwargs):
|
def wrapper(self, *args, **kwargs):
|
||||||
lock_file_path = DEFAULT_LOCK_FILE_PATH
|
lock_file_path = DEFAULT_LOCK_FILE_PATH
|
||||||
if self.mutex_lock_file is not None:
|
if self.mutex_lock_file:
|
||||||
lock_file_path = self.mutex_lock_file
|
lock_file_path = self.mutex_lock_file
|
||||||
|
|
||||||
with open(lock_file_path, 'w') as lock_file:
|
with open(lock_file_path, 'w') as lock_file:
|
||||||
|
|
|
||||||
|
|
@ -114,9 +114,10 @@ def is_id(name_or_id: str):
|
||||||
|
|
||||||
|
|
||||||
class LaconicRegistryClient:
|
class LaconicRegistryClient:
|
||||||
def __init__(self, config_file, log_file=None):
|
def __init__(self, config_file, log_file=None, mutex_lock_file=None):
|
||||||
self.config_file = config_file
|
self.config_file = config_file
|
||||||
self.log_file = log_file
|
self.log_file = log_file
|
||||||
|
self.mutex_lock_file = mutex_lock_file
|
||||||
self.cache = AttrDict(
|
self.cache = AttrDict(
|
||||||
{
|
{
|
||||||
"name_or_id": {},
|
"name_or_id": {},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue