Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelism in Sciunit (Feature request), Experiment creation phase #22

Open
Prashant-Kumar700 opened this issue Oct 25, 2023 · 0 comments

Comments

@Prashant-Kumar700
Copy link

Prashant-Kumar700 commented Oct 25, 2023

We have been trying to build the parallel processing of experiments in Sciunit and here are the problems that we faced.

While creating the experiments we try to launch multiple threads to create multiple executions (e1,e2,e3,....,en) to work on multiple parts of the datafile parallelly (either through multithreading or multiprocessing). However this throws out an error :

sciunit: exec: b'ERROR: database is locked\n'

We would need to make Sciunit work parallelly with the db locking. When executing multiple executions in parallel with Sciunit, it involves multiple processes simultaneously writing to the same database file. This concurrent access can lead to non-deterministic behavior and is resulting in parallel access to database issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant