You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
covalent is a dependency when wrapper_fn function is unpickled and executed.
However, when covalent is initialized for the first time, it will try to create a new config file, which means acquiring a filelock inside ConfigManager.update_config().
Trying to acquire the filelock leads to the following error
Traceback (most recent call last):
File "/global/homes/a/ara/slurm-tests/script-310be8a1-383d-4586-9dc1-821c8120e93f-0.py", line 5, in <module>
function, args, kwargs = pickle.load(f)
File "/global/homes/a/ara/miniconda3/envs/slurm-test/lib/python3.9/site-packages/covalent/__init__.py", line 22, in <module>
from . import executor, leptons # nopycln: import
File "/global/homes/a/ara/miniconda3/envs/slurm-test/lib/python3.9/site-packages/covalent/executor/__init__.py", line 32, in <module>
from .._shared_files import logger
File "/global/homes/a/ara/miniconda3/envs/slurm-test/lib/python3.9/site-packages/covalent/_shared_files/logger.py", line 24, in <module>
from .config import get_config
File "/global/homes/a/ara/miniconda3/envs/slurm-test/lib/python3.9/site-packages/covalent/_shared_files/config.py", line 199, in <module>
_config_manager = ConfigManager()
File "/global/homes/a/ara/miniconda3/envs/slurm-test/lib/python3.9/site-packages/covalent/_shared_files/config.py", line 52, in __init__
self.update_config()
File "/global/homes/a/ara/miniconda3/envs/slurm-test/lib/python3.9/site-packages/covalent/_shared_files/config.py", line 109, in update_config
with filelock.FileLock(f"{self.config_file}.lock", timeout=1):
File "/global/homes/a/ara/miniconda3/envs/slurm-test/lib/python3.9/site-packages/filelock/_api.py", line 297, in __enter__
self.acquire()
File "/global/homes/a/ara/miniconda3/envs/slurm-test/lib/python3.9/site-packages/filelock/_api.py", line 264, in acquire
raise Timeout(lock_filename) # noqa: TRY301
filelock._error.Timeout: The file lock '/global/homes/a/ara/.config/covalent/covalent.conf.lock' could not be acquired.
Notes
Solution may be a change to core covalent, not this plugin.
Manually disabling the filelock acquisition code seems to resolve the problem (workflow completes successfully)
The text was updated successfully, but these errors were encountered:
covalent
is a dependency whenwrapper_fn
function is unpickled and executed.However, when covalent is initialized for the first time, it will try to create a new config file, which means acquiring a filelock inside
ConfigManager.update_config()
.Trying to acquire the filelock leads to the following error
Notes
The text was updated successfully, but these errors were encountered: