From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eHt6AFRJdV+OQgAA0tVLHw (envelope-from ) for ; Thu, 01 Oct 2020 03:13:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2LvtN1NJdV8pfQAA1q6Kng (envelope-from ) for ; Thu, 01 Oct 2020 03:13:23 +0000 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 7E19F940308 for ; Thu, 1 Oct 2020 03:13:23 +0000 (UTC) Received: from localhost ([::1]:42206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNp22-0000JU-BQ for larch@yhetil.org; Wed, 30 Sep 2020 23:13:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNp1X-0000JJ-Uz for emacs-orgmode@gnu.org; Wed, 30 Sep 2020 23:12:52 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:33666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNp1U-0006Wn-SC for emacs-orgmode@gnu.org; Wed, 30 Sep 2020 23:12:51 -0400 Received: by mail-pg1-x531.google.com with SMTP id o25so2866379pgm.0 for ; Wed, 30 Sep 2020 20:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=n8Ixl63ZuW63E631knONJOr+0KZqLDvRhZhC8CHOPKo=; b=YI5zkvVCQSp77OZ+0gRWVJL7LKr2SdvYcFPm1y/+VhQZZDipB6TB82afSkLAJDQHx2 sSOfItPG5T/1VgI/hDzwcpz6I9A/7H324MrK6djRfP4QNSXTB8OS3hBvHXqcFJzdtZbx MJHF64i/nWuDZG28Hs2SiTDGC0vi2gHo4wHJtQYUUBb/JqBB3Bo6IpvRE01LNG/W6+X5 qiob6Oglu2mCdf/3xAFIrMcosGoCucXsniMnc36uDJUUYjMerDlNTIcnY402IGsvoTL6 S37Jlh8nOzcORN2u0noSSuG9pC8LBm49Z8BMuUFY2nYueu+xJTkv5b7uFqlc+yDha0SG wo4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=n8Ixl63ZuW63E631knONJOr+0KZqLDvRhZhC8CHOPKo=; b=J1pkaJylkA0GaYM8RRIwFIBwG8nYqLa88xvcdZ0l8TbBQHvSeEGJlRiG25U1Ul/L0e oBObzh4Hpe1fbUVdLwcW9zgn7txI+uorwkzVlGcRy+rkWN+zgymWimz1RLiKE0fcDXv+ To50xEtz4VRl7Zztscu+hMbsHqB3qP0EwMNZ/yRv96i0lKusdzjGngWZ6Bf3WRauMhkW oyLyco+5KwIu4tc4EBwf8mX9pOKi6Fm5znqOv7f2a8lTsc8U2JXpZzT3g5aehLWSQTUt TEEYQPQUcd5cTqlQXkfvBLA1351oFlweF5MGA6AyBxlMv9TOw5H44roS8sGwBp4bM8dT rIxg== X-Gm-Message-State: AOAM532ubA++/Og+LhhKVleERYEYHsM+4k80A5LGiq8ObxTs2XpVU5M/ qTvgQ0ieWkprQTJYUn5mhfA= X-Google-Smtp-Source: ABdhPJzVDIxGdyucg5i5o8LyjsonUk6GiBWFP3MWOF2yW19qiLFItX3c4t1aqZtJlYLwtuFDg0whbA== X-Received: by 2002:a63:165c:: with SMTP id 28mr4120114pgw.302.1601521967280; Wed, 30 Sep 2020 20:12:47 -0700 (PDT) Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id w195sm4237614pff.74.2020.09.30.20.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 20:12:46 -0700 (PDT) From: Ihor Radchenko To: Stefan Huchler , emacs-orgmode@gnu.org Subject: Re: Customize resheduling behaviour In-Reply-To: <87pn634c7c.fsf@mail.de> References: <87pn634c7c.fsf@mail.de> Date: Thu, 01 Oct 2020 11:11:40 +0800 Message-ID: <874kneprmb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=yantar92@gmail.com; helo=mail-pg1-x531.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=YI5zkvVC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: scfyNrbfapPp > Is there a way to reshedule it, if it fails 1 week later and if I > complete it, reshedule 2 weeks later? There is no built-in way to do it, but you can always write your own org-trigger-hook. Alternatively, you can also use org-edna. Something like :TRIGGER: if self todo-state?("FAILED") then self scheduled!("++14d") todo!("TODO") else self scheduled!("++7d") todo!("TODO") endif Best, Ihor Stefan Huchler writes: > I have a task sheduled like that: > > * TODO Order from a delivery service > SCHEDULED: <2020-10-06 Di .+2w> > > So if I understand the resheduling correctly if I miss the task, it > get's resheduled 2 weeks later (probably deadline would be better here)? > > But the delivery service delievers weekly I just choose to only order > all 2 weeks from it. So if I miss a date I would shop myself for 1 > week and then order again 1 week later not 2 but if I succeed I only > order 2 weeks later. > > Is there a way to reshedule it, if it fails 1 week later and if I > complete it, reshedule 2 weeks later?