From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anoop GR Subject: Re: How to set time limit and memory limit for execution of source blocks Date: Mon, 10 Feb 2020 12:45:21 +0530 Message-ID: References: <875zgf7qvp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003f4b69059e33813d" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59695) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j13I6-0000SS-Qh for emacs-orgmode@gnu.org; Mon, 10 Feb 2020 02:15:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j13I5-0003WT-Sx for emacs-orgmode@gnu.org; Mon, 10 Feb 2020 02:15:34 -0500 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:38081) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j13I5-0003U2-Ns for emacs-orgmode@gnu.org; Mon, 10 Feb 2020 02:15:33 -0500 Received: by mail-oi1-x232.google.com with SMTP id l9so8268112oii.5 for ; Sun, 09 Feb 2020 23:15:33 -0800 (PST) In-Reply-To: <875zgf7qvp.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Ken Mankoff Cc: emacs-orgmode@gnu.org --0000000000003f4b69059e33813d Content-Type: text/plain; charset="UTF-8" Thanks for the tip Ken. I will get hold of one of those packages and modify it to my needs. On Sun, Feb 9, 2020 at 8:24 PM Ken Mankoff wrote: > On 2020-02-03 at 22:40 -08, Anoop GR wrote... > > How do I enforce the same on my orgmode source blocks. I want the > > execution to stop whenever it exceeds the above limits on memory and > > time. > > There are several packages that implement :async source blocks via the > :async header arg. It seems like one of these could be fairly easy to adapt > to monitor the process it spawns. > > -k. > > --0000000000003f4b69059e33813d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the tip Ken.
I will get hold of one of thos= e packages and modify it to my needs.


On Sun, Feb 9= , 2020 at 8:24 PM Ken Mankoff <mank= off@gmail.com> wrote:
On 2020-02-03 at 22:40 -08, Anoop GR <anoopemacs@gmail.com> wrote...<= br> > How do I enforce the same on my orgmode source blocks. I want the
> execution to stop whenever it exceeds the above limits on memory and > time.

There are several packages that implement :async source blocks via the :asy= nc header arg. It seems like one of these could be fairly easy to adapt to = monitor the process it spawns.

=C2=A0 -k.

--0000000000003f4b69059e33813d--