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

timeout not working (non deterministic)? #14

Open
spotlightgit opened this issue Jun 1, 2020 · 1 comment
Open

timeout not working (non deterministic)? #14

spotlightgit opened this issue Jun 1, 2020 · 1 comment

Comments

@spotlightgit
Copy link

Hey Oliver,

with this kind of function call I have some trouble with your toolbox:
batch_job_distrib(goal_function, x, worker, additional_data, '-chunk_lims', [1 1], '-timeout', timeout);
In the past there were no issues without using the timeout option. Now I want to exclude the Master Matlab from number crunching, therefore I use the timeout option (like you suggested).
Unfortunately it happens sometimes that all workers are closed/finished but a single mat-file still has a file lock (for example: chunk000001.mat.lock) and the Master Matlab waits endless and no timeout is applied. If I "finish" this situation with Ctrl + c at the command line of the Master Matlab the following error appears:

Please wait while the workers are halted.
Operation terminated by user during batch_job_collect (line 78)


In batch_job_distrib (line 201)
    output = batch_job_collect(s, co);
...

Do you have any idea what's going wrong or suggestions what I can do?

@ojwoodford
Copy link
Owner

Thanks. This sounds like a bug. I just pushed a change which seems to work for me. Please test and let me know.

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

2 participants