CobayaSampler / cobaya

Code for Bayesian Analysis
http://cobaya.readthedocs.io/en/latest/
Other
122 stars 125 forks source link

Lock on input parameter file #324

Closed mraveri closed 8 months ago

mraveri commented 8 months ago

I am setting the env variable that should prevent locking files and parameters.input.yaml.locked is still being produced (preventing resuming the run...)

My solution is removing lock files by hand... which I don't particularly enjoy...

Is this intended? Can it be disabled?

cmbant commented 8 months ago

Setting COBAYA_USE_FILE_LOCKING avoids using file locks, and instead uses .lock files. The .lock files should automatically be deleted for a regular termination (but not if it crashes, or job times out). Using file locks is easier if you can.

mraveri commented 8 months ago

I see, so it is the intended behavior. Closing the issue, thanks!