* Coping with errors in starting async compilations
@ 2021-10-17 19:36 Eli Zaretskii
2021-10-18 8:44 ` Andrea Corallo
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2021-10-17 19:36 UTC (permalink / raw)
To: Andrea Corallo; +Cc: emacs-devel
Andrea,
Is comp-run-async-workers capable of coping with failures to launch a
sub-process due to stuff like insufficient resources? For example,
Emacs on MS-Windows doesn't allow to start more than 31 sub-processes
(including network connections, so it could be less than that), so
what happens when comp-run-async-workers attempts to start another
sub-process and that fails with EAGAIN? That should be handled like
reaching the limitation of comp-effective-async-max-jobs. Perhaps it
already is?
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Coping with errors in starting async compilations
2021-10-17 19:36 Coping with errors in starting async compilations Eli Zaretskii
@ 2021-10-18 8:44 ` Andrea Corallo
2021-10-18 12:38 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Andrea Corallo @ 2021-10-18 8:44 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> Andrea,
>
> Is comp-run-async-workers capable of coping with failures to launch a
> sub-process due to stuff like insufficient resources? For example,
> Emacs on MS-Windows doesn't allow to start more than 31 sub-processes
> (including network connections, so it could be less than that), so
> what happens when comp-run-async-workers attempts to start another
> sub-process and that fails with EAGAIN? That should be handled like
> reaching the limitation of comp-effective-async-max-jobs. Perhaps it
> already is?
>
> Thanks.
Hi Eli,
good point, this is not handled. What should the intended behaivour we
want? Restart new compilations failed with EAGAIN and wait to start new
one?
Thanks
Andrea
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Coping with errors in starting async compilations
2021-10-18 8:44 ` Andrea Corallo
@ 2021-10-18 12:38 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2021-10-18 12:38 UTC (permalink / raw)
To: Andrea Corallo; +Cc: emacs-devel
> From: Andrea Corallo <akrl@sdf.org>
> Cc: emacs-devel@gnu.org
> Date: Mon, 18 Oct 2021 08:44:41 +0000
>
> > Is comp-run-async-workers capable of coping with failures to launch a
> > sub-process due to stuff like insufficient resources? For example,
> > Emacs on MS-Windows doesn't allow to start more than 31 sub-processes
> > (including network connections, so it could be less than that), so
> > what happens when comp-run-async-workers attempts to start another
> > sub-process and that fails with EAGAIN? That should be handled like
> > reaching the limitation of comp-effective-async-max-jobs. Perhaps it
> > already is?
> >
> > Thanks.
>
> Hi Eli,
>
> good point, this is not handled. What should the intended behaivour we
> want? Restart new compilations failed with EAGAIN and wait to start new
> one?
Yes, just like you do when the number of running jobs reaches the
maximum allowed number: queue the rest for later execution. IOW,
effectively behave like comp-effective-async-max-jobs was lowered.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-10-18 12:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-17 19:36 Coping with errors in starting async compilations Eli Zaretskii
2021-10-18 8:44 ` Andrea Corallo
2021-10-18 12:38 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).