Re: [Rd] User interrupts parallel excution. Why it works or why not?

2021-07-20 Thread Jiefei Wang
Thanks for your explanation. This makes a lot of sense! SIGINT handling is a blind spot to me, this introduction looks perfect! Best, Jiefei On Tue, Jul 20, 2021 at 4:31 PM Tomas Kalibera wrote: > > Hi Jiefei, > > when you run the cluster "automatically" in your terminal and pres > Ctrl-C in

Re: [Rd] User interrupts parallel excution. Why it works or why not?

2021-07-20 Thread Tomas Kalibera
Hi Jiefei, when you run the cluster "automatically" in your terminal and pres Ctrl-C in Unix, both the master and the worker processes get the SIGINT signal, because they belong to the same foreground process group. So you are directly interrupting also the worker process. When you run the

[Rd] User interrupts parallel excution. Why it works or why not?

2021-07-20 Thread Jiefei Wang
Hi all, I just notice this interesting problem a few days before, but I cannot find an answer for it. Say if you have a long-running job in a cluster made by the parallel package and you decide to stop the execution by pressing ctr + c in the terminal or the stop button in Rstudio for some