parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically change number of jobslots


From: Joe Sapp
Subject: Re: Dynamically change number of jobslots
Date: Thu, 21 Jan 2021 21:04:51 -0500

You could use an sshloginfile with just the localhost and the number of processes. Something like this in the file:
4/:

Then change the number in the file and you'll change the number of jobs next time a job is finished.

--
Joe

On Thu, Jan 21, 2021 at 4:52 PM Stuart Anderson <sba@caltech.edu> wrote:
Is it possible to signal a running parallel process to change the value of -P N ?

Currently if I need to change that I use pkill -STOP parallel to stop any new jobs from starting and then kill/restart parallel with a new value, but it would nice to be able to do that without having to drain the queue (or losing stdout/stderr during draining).

P.S. This is fantastic tool, and I wish I had upgraded from xargs years ago!

Thanks.

--
Stuart Anderson
sba@caltech.edu





reply via email to

[Prev in Thread] Current Thread [Next in Thread]