#14150: Fix wait() in @parallel
----------------------------------+-----------------------------------------
Reporter: jdemeyer | Owner: jason
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.8
Component: misc | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by jdemeyer):
Replying to [comment:2 roed]:
> is there one that consistently fails in the new framework?
To be honest, I cannot say for sure why the problem occurs.
I'm fairly certain the problem is the big gap between
{{{
pid = os.wait()[0]
}}}
and
{{{
del workers[pid]
}}}
If some exception would occur in between, then `workers[pid]` would still
be in the list of workers, even though we saw it exit. However, I cannot
really explain where the exception could come from (can `yield` raise
exceptions?)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14150#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.