pybiolib 1.1.1007__tar.gz → 1.1.1011__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/PKG-INFO +1 -1
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/utils/cache_state.py +9 -9
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/pyproject.toml +1 -1
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/LICENSE +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/README.md +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/api/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/api/client.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/app/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/app/app.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/app/search_apps.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/app/utils.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/api_client.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/app_types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/auth.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/biolib_account_api.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/biolib_app_api.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/biolib_job_api.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/biolib_large_file_system_api.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/common_types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/job_types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/lfs_types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/user_state.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/base_bbf_package.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/common_types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/encrypted_module_output.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/module_input.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/module_output.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/remote_endpoints.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/rsa_encrypted_aes_package.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/saved_job.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/stdout_and_stderr.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/system_exception.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/system_status_update.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/unencrypted_module_output.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/utils.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_docker_client/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_errors.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_logging.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_push.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/cli/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/cli/init.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/cli/lfs.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/cli/push.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/cli/run.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/cli/runtime.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/cli/start.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/cli_utils.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/.gitignore +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/cloud_utils/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/cloud_utils/cloud_utils.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/cache_state.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/cache_types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/docker_image_cache.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/base_executor.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/docker_executor.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/docker_types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/remote/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/remote/remote_executor.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/tars/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/job_legacy_input_wait_timeout_thread.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/job_max_runtime_timer_thread.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/job_storage.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/job_worker.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/large_file_system.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/mappings.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/utils.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/remote_host_proxy.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/socker_listener_thread.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/socket_sender_thread.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/utils.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/webserver/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/webserver/gunicorn_flask_application.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/webserver/webserver.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/webserver/webserver_types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/webserver/webserver_utils.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/webserver/worker_thread.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/experiments/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/experiments/experiment.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/experiments/types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/jobs/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/jobs/job.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/jobs/job_result.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/jobs/types.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/lfs/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/lfs/cache.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/lfs/utils.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/runtime/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/runtime/results.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/start_cli.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/tables.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/templates/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/templates/example_app.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/typing_utils.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/user/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/user/sign_in.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/utils/__init__.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/utils/multipart_uploader.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/utils/seq_util.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/utils/zip/remote_zip.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/validators/validate_app_version.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/validators/validate_argument.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/validators/validate_module.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/validators/validate_zip_file.py +0 -0
- {pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/validators/validator_utils.py +0 -0
@@ -68,17 +68,17 @@ class CacheState(abc.ABC, Generic[StateType]):
|
|
68
68
|
logger_no_user_data.debug(f'CacheState: Exited state path: {self._state_path}')
|
69
69
|
|
70
70
|
def _acquire_state_lock(self) -> None:
|
71
|
-
|
72
|
-
|
71
|
+
for _ in range(10):
|
72
|
+
try:
|
73
|
+
lock_file = open(self._state_lock_path, mode='x')
|
74
|
+
lock_file.close()
|
75
|
+
return
|
76
|
+
except BaseException as error: # pylint: disable=broad-except
|
77
|
+
logger_no_user_data.debug(f'Failed to acquire lock file "{self._state_lock_path}". Got error: {error}')
|
73
78
|
|
74
|
-
|
75
|
-
time.sleep(seconds_to_sleep)
|
76
|
-
timeout_seconds -= seconds_to_sleep
|
77
|
-
if timeout_seconds < 0:
|
78
|
-
raise CacheStateError('Cache state timed out waiting for lock file')
|
79
|
+
time.sleep(0.5)
|
79
80
|
|
80
|
-
|
81
|
-
lock_file.close()
|
81
|
+
raise CacheStateError(f'Cache state timed out waiting to acquire lock file "{self._state_lock_path}"')
|
82
82
|
|
83
83
|
def _release_state_lock(self) -> None:
|
84
84
|
if os.path.exists(self._state_lock_path):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_api_client/biolib_large_file_system_api.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/encrypted_module_output.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/rsa_encrypted_aes_package.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/biolib_binary_format/unencrypted_module_output.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/docker_image_cache.py
RENAMED
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/__init__.py
RENAMED
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/base_executor.py
RENAMED
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/docker_executor.py
RENAMED
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/docker_types.py
RENAMED
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/remote/__init__.py
RENAMED
File without changes
|
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/job_worker/executors/tars/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pybiolib-1.1.1007 → pybiolib-1.1.1011}/biolib/compute_node/webserver/gunicorn_flask_application.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|