unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: "Sławomir Grochowski" <slawomir.grochowski@gmail.com>,
	notmuch@notmuchmail.org
Subject: Re: [BUG] notmuch-search: notmuch search process already running for query
Date: Thu, 11 Jan 2024 23:01:51 -0400	[thread overview]
Message-ID: <878r4vdzkw.fsf@tethera.net> (raw)
In-Reply-To: <875y02o8h4.fsf@gmail.com>

Sławomir Grochowski <slawomir.grochowski@gmail.com> writes:

> Dear All,
>
> I just have started using notmuch with Emacs.
>
> When I run `notmuch-poll-and-refresh-this-buffer` which run script '.notmuch/hooks/pre-new':
>
> #!/bin/sh
> mbsync -L gmail
>
> Most of the time it gives me an error & message:
> "notmuch-search: notmuch search process already running for query ‘tag:inbox’".
>

I could reliably duplicate this in two ways: one is calling the function
twice in a row, like

(defun doit ()
  (interactive)
  (notmuch-poll-and-refresh-this-buffer)
  (message "completed %f" (float-time))
  (notmuch-poll-and-refresh-this-buffer))

the second way is calling

    (notmuch-poll-and-refresh-this-buffer)

or just

   (notmuch-refresh-this-buffer)

in a buffer when the search was still being loaded. That can happen with
larger searches (more than 10k threads, roughly).

Do either of those cases seem possible to you?\r

      reply	other threads:[~2024-01-12  3:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-09 15:02 [BUG] notmuch-search: notmuch search process already running for query Sławomir Grochowski
2024-01-12  3:01 ` David Bremner [this message]

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://notmuchmail.org/

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

  git send-email \
    --in-reply-to=878r4vdzkw.fsf@tethera.net \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=slawomir.grochowski@gmail.com \
    /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://yhetil.org/notmuch.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).