From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2ACfI8yWomKYvAAAbAwnHQ (envelope-from ) for ; Fri, 10 Jun 2022 02:56:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gHdjIsyWomIEDwEAG6o9tA (envelope-from ) for ; Fri, 10 Jun 2022 02:56:44 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2E19716489 for ; Fri, 10 Jun 2022 02:56:44 +0200 (CEST) Received: from localhost ([::1]:53364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzSx9-0007o3-35 for larch@yhetil.org; Thu, 09 Jun 2022 20:56:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzSx7-0007nr-4I for gwl-devel@gnu.org; Thu, 09 Jun 2022 20:56:41 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:46906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzSx4-0005be-Om for gwl-devel@gnu.org; Thu, 09 Jun 2022 20:56:40 -0400 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 25A0uRlC005205 for ; Thu, 9 Jun 2022 20:56:31 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 25A0uRlC005205 To: gwl-devel@gnu.org Subject: auto-connect fails to parallelize independent processes Date: Thu, 09 Jun 2022 20:56:27 -0400 Message-ID: <87edzxuyis.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Fri, 10 Jun 2022 00:56:27 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: gwl-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gwl-devel-bounces+larch=yhetil.org@gnu.org Sender: "gwl-devel" Reply-to: Olivier Dion From: Olivier Dion via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654822604; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=O6vup6zdOcwLd8Tg4nGWOWJZXxs32JzkKk4lqi2UHCA=; b=Ko5BTdRtnm3U8iD+sj4ycwFzIvSPrPS3GfpJU0r+63FofVJr/o2czULpL8blXRdzmdtJwH aejWzs4s4exVw6EQLfImiVGZOTdnk3rmDU2xvhw28awn5rk2Fgj3X5btLL9LdEmrx2eSes 7BmIqlTIW+a9A4mfZiZ8KkBL6wclobpuAGkYeopyOVDdVG7ZMsyANbbQD4vPmvD1GeMtAj b4+suHAt8wEufyqGTCjT276vUmyoTlrNIdEOJ5zHWzvUG6+I9LGv224YrzsobG1lD4b3Nv fY3d26gfDG2qs8cx9M9zY8C4jpXdz7pzcBcVIRvJiWy/ITUTPehomuv3JLL04w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654822604; a=rsa-sha256; cv=none; b=B2vDintjkps38Gc8s1X2DspxJ790swvpKjQtGnG981jDwqRS+xVDZ8AO/CUk4hyWT05D90 Y7JkhJcxr6NXVicw3AuRgCJ9hdnVoZYFYr4yQx61wMANfhAkasGl5UyiRey3a7ndK4VOrf fUWRNlTTGUyOMI++S5ob45oQIvK6a9ScLc4tSLpiKTlFwi7GBk95YxjHQrckpMWsG/RlC0 16/Ve6WFZx+d2gYKEH1O3npquBaklW2BUZMDJeuDmciRX3vhTsYly5n6GTyDPJ8HLALipA qmwV+v5w9liaDfHbdPGB+dCoOapWrzwXCalYZD+nu716huOy4zzhnQfdQQVmqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.49 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2E19716489 X-Spam-Score: -1.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: +7wCFtPriw93 Hi, Given the following example: --8<---------------cut here---------------start------------->8--- process proc (with output) packages "coreutils" outputs : file output # { for i in $(seq 10); do date >> {{outputs}} sleep 1 done } workflow parallel processes auto-connect proc "A.out" proc "B.out" --8<---------------cut here---------------end--------------->8--- We can see that both processes are completely independent, and yet they are batched linearly. If we re-write the workflow with `graph' instead: --8<---------------cut here---------------start------------->8--- define A : proc "A.out" define B : proc "B.out" workflow parallel processes graph A -> B -> --8<---------------cut here---------------end--------------->8--- we do get parallel execution of the processes. -- Olivier Dion oldiob.dev