emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Anoop GR <anoopemacs@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to set time limit and memory limit for execution of source blocks
Date: Sun, 09 Feb 2020 06:54:34 -0800	[thread overview]
Message-ID: <875zgf7qvp.fsf@gmail.com> (raw)
In-Reply-To: <CACabEsRh2SytfdaqP68A5mvcpm8DPMaNJHL_X==p9uFq9ZAgZg@mail.gmail.com>

On 2020-02-03 at 22:40 -08, Anoop GR <anoopemacs@gmail.com> 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.

  parent reply	other threads:[~2020-02-09 14:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-04  6:40 How to set time limit and memory limit for execution of source blocks Anoop GR
2020-02-04  7:23 ` Tim Cross
2020-02-05  5:16 ` stardiviner
2020-02-09 14:54 ` Ken Mankoff [this message]
2020-02-10  7:15   ` Anoop GR

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zgf7qvp.fsf@gmail.com \
    --to=mankoff@gmail.com \
    --cc=anoopemacs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).