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

Error while handling result of Nproc task #7

Open
leostera opened this issue Dec 17, 2018 · 1 comment
Open

Error while handling result of Nproc task #7

leostera opened this issue Dec 17, 2018 · 1 comment

Comments

@leostera
Copy link

Hello!

Found out with @anmonteiro that after creating a pool of X threads, nproc seems to be writing out X-1 error messages:

[err] Error while handling result of Nproc task: exception Invalid_argument("Lwt.wakeup")

Minimum code to be reproduced can be found here: https://github.com/rizo/nproc/blob/master/example.ml

The work seems to be done in parallel either way, which is good, but it'd be great to get rid of this error message.

@alexandreDebant
Copy link

alexandreDebant commented Feb 22, 2019

Hello!

I was able to reproduce the error with a way smaller example :

open Lwt

let ppool, plwt = Nproc.create 2
	     
let () = 
	let _ = Lwt_main.run @@ Nproc.submit ppool (fun x -> ()) () in 
	let _ = Lwt_main.run @@ Nproc.submit ppool (fun x -> ()) () in ()

Has a workaround or a proper fix been found ?

Best,

A.

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