From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 +G0rMtd/52MFngAAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 12:45:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MDUsMtd/52OpIwAA9RJhRA (envelope-from ) for ; Sat, 11 Feb 2023 12:45:27 +0100 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 9346C1149C for ; Sat, 11 Feb 2023 12:45:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQoJ7-00088U-MU; Sat, 11 Feb 2023 06:44:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQoJ1-000863-PN for emacs-orgmode@gnu.org; Sat, 11 Feb 2023 06:44:37 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQoIy-0001GK-7e for emacs-orgmode@gnu.org; Sat, 11 Feb 2023 06:44:35 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7496A24056D for ; Sat, 11 Feb 2023 12:44:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676115870; bh=5pW9Oxmq7jo6yM+zcNO9FMQiqk/c9a98ZhY/EtZ7pkQ=; h=From:To:Cc:Subject:Date:From; b=dms2AXs9NroI60sYMd9lvHKA2qFUHUWhmWbSrp8sWdMmWlQckHY2VcpNHO/tC+B1z TQNLXXekq14XVc2IrQiYhZgd/W67y4IYJUPH/oVPVHeQREc4+FaWhBLKbdPRLZ91y/ uftxCr4H7h0ro6tj5/RE1UUKtE7I4WTcVreN3FvMI+vN6y/Dgfp/9tyiK4rOQyEdE7 XgobYOxzHwn5Hp6+oo1LMX4l2TiNzkV6j35h3ofvqeZGO1jHk3dfMtZHMvOQ1mj3bN wbZGeKf3+3lAlIOGTvbU4GcufdHT7kMJgJW4MkyyedCQ3S0PpFrAp8qsvLuAW4B0rX O3Nkjet5bLa7w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PDTKP52RTz9rxH; Sat, 11 Feb 2023 12:44:22 +0100 (CET) From: Ihor Radchenko To: Matt Cc: emacs-orgmode Subject: Re: [PATCH] Async evaluation in ob-shell In-Reply-To: <1863d69188f.11e078bd1228881.451172865246440158@excalamus.com> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87v8kd8zzw.fsf@localhost> <1863472efe9.10fdd5ba4258906.5972264927968042941@excalamus.com> <87y1p7axpe.fsf@localhost> <1863d69188f.11e078bd1228881.451172865246440158@excalamus.com> Date: Sat, 11 Feb 2023 11:44:56 +0000 Message-ID: <87fsbcbf47.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dms2AXs9; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676115927; a=rsa-sha256; cv=none; b=GsHAKVbM+8/WAabwQocSHMTXG3FTx4KdH7zAYaVEL2b0tG0f0F8KdZPA+kWGo+hKciHsoo 22Z0NtGSPowXgJkT/422jPZhnV8KCrxvd7eVjB9I8Uz/vEk+2HAEL3UKeZwOjP5p2hYVMj FS3/0QRDCXEblaf7DD8+G8DyA3BDlaE+Ofrm6PHCrQxVH+9HB6YSKNIIFbqa6Z2K1Cso4F sRUm24xHkcN5B9E5VVRebGS/KhDxXpRFOKl+OUrJGkKROTYS5ptQU4+wX1vc7Tb+Cl2mNY cb4V9H4eH3TikZgAGqd8FLYY+iUeWjXnKR3Y0bU1gneUhEP84tuPJ5tt3QGDAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676115927; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7Wnh/yraiWygRMFbA07NWaxvEu/+txdd/u63kpqyBX8=; b=JUmv04DrBuUjLS97Osrbrr7O6gJPuyS8t9n0iQJqrNZjWbD3zF9j2ED4A9/VMRcbKRxfk1 7LZAV6bmH8qO90wRYQF8g4I6GruVx7eN6aU9D/ODZpXdBI2sum7kWMvPY089FTXS0HwMsv HQ7dFhTKSGBZFgWtfl5EcRAipua2VUixkFliyLPI7QPDgdwhneNp2ajy8k2DLb8PjUyHFI s2ym9D2zMUc7BLsbVwZyMpSuFhVyt61neebKOguNfQBNoVk/dlZOn6eZklWBqjHxklkJxI AcbTeIR3aQHQXocsEpsIYEljBJo0GQqZUrYpreP4/eRMjILJ0do9/cG8XiBfPQ== X-Migadu-Queue-Id: 9346C1149C Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dms2AXs9; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.37 X-Spam-Score: -7.37 X-TUID: /FsQktZy352u Matt writes: > It seems to me like 02-ob-shell-async-non-file.patch is all that's needed for basic async in ob-shell. I'm able to run long processes like `guix pull' and `guix package -u' calls without issue and the results look like I expect. Similarly for running a web server, such as `python3 -m http.server' and killing it. > > Unless there's something you or others think needs to be done, I can get it committed (and try to write a test or two for it). 1. You should provide all the docstrings. 2. I generally feel that separate async and separate session code are either duplicating the same code or edge cases considered by session code may popup in async code unexpectedly. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at