bugGNU Parallel - Bugs: bug #59723, [PATCH] Added {grps} replacement...


bug #59723: [PATCH] Added {grps} replacement for host and parameter group intersection

Submitter:  None
Submitted:  Fri 18 Dec 2020 04:44:40 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  In Progress
Privacy:  Public Assigned to:  tange
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Mon 21 Dec 2020 04:46:12 PM UTC, comment #1: 

Since the intersection can be multiple groups I have instead implemented: {agrp} and {hgrp} which is the hostgroups of the argument and the sshlogin respectively.

From this you can compute the intersection yourself.

Ole Tange <tange>
Group administrator
Fri 18 Dec 2020 04:44:40 PM UTC, original submission:  

Running a task on different remote hosts divided onto a set of hostgroups, having each of the input arguments assigned to one of that hostgroups, I needed to know each time why the job was assigned to a host (i.e. which particular host's capability allows to run that particular job on it). And I've ended up with the following patch.

With this patch one can run

parallel --hostgroups --plus -S @cap1+cap2/host1 -S @cap3+cap4/host2 mycmd --mode {grps} -r ::: task1@cap2 task2@cap1 task3@cap4

and have

host1: mycmd --mode cap2 -r task1
host1: mycmd --mode cap1 -r task2
host2: mycmd --mode cap4 -r task3



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #50510:  parallel-20201122-grps-repl.patch added by None (3KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by manowar
  • -email is unavailable- added by tange (Posted a comment)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-28 manowar Carbon-Copy- Added -email is unavailable-
    2020-12-21 tange StatusNone In Progress
        Assigned toNone tange
    2020-12-18 None Attached File- Added parallel-20201122-grps-repl.patch, #50510

    Back to the top

    Powered by Savane 3.13-9f0e.
    Corresponding source code