Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkNcp-0001Ef-Fo for pgsql-general@arkaria.postgresql.org; Wed, 02 Dec 2020 08:36:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kkNco-0005GG-D5 for pgsql-general@arkaria.postgresql.org; Wed, 02 Dec 2020 08:36:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkNco-0005G9-2s for pgsql-general@lists.postgresql.org; Wed, 02 Dec 2020 08:36:34 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kkNcm-0008VQ-4R for pgsql-general@lists.postgresql.org; Wed, 02 Dec 2020 08:36:33 +0000 Received: by mail-ed1-x52c.google.com with SMTP id d18so2539121edt.7 for ; Wed, 02 Dec 2020 00:36:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=gogqMyFRvtjAKuG1WZ5e2zidgPxJK1p5OlawiVyh/oA=; b=Ag7wcBeZIwYqyx7wyuXfEwHoUI5MJDqbFJsPpAk+W8/+jYy8tXF1ZFxMXRkp/Z32DD MAWYhJ7xL88wPgje4JgYGTIwEwyqPBs//3CGCElWm1Lk4kEKGZUpuQPnWPaeXUzbcUOp oADCmBhYwzQaouTU3WYtePSXbNASjwCIQW03aPc83VPxCpNq8VitGiY3l8jTm6kF0kjE zwax8yG4W26gZ6ztTW8GyLOAXBKfLoWiJi5b0wnijD82ca/Nxi9ZQ+8IYdBlD1NV73eO s12wyrQ9YEHU12PIu/+V8eifJ2Ja8mKJfeTgQp39XJpdolsksUdhINBKM8Yy03NgaJ9a eyUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=gogqMyFRvtjAKuG1WZ5e2zidgPxJK1p5OlawiVyh/oA=; b=U3YXSpfDylb5RfITSR28LZ9F4o7gj42gXcvk07dcteyWOKhuu8hNtfY+Ke2+VHbMKP H+2E0GW03D9uYwFl1N1vqYXU1i+2TBsswcHiK0p0Art4Zot6HrtvUO4gFUAyhqPYXfwW VZZjgteJz5cE7UiFDLyryetmL/JKs4VPBVhHOsfvKv16xGOBomrOGqJordLi3b1IgnQ4 ctrvQwBmzxJAU0+VEoqjiF4VAW5wLeyiWl8NaLcoTdbsedMpU1eA+I7HwzyPMoc171mD +LwS/6U/9Ov08XfJ7vTstChGAtWEXfGsImIME6q7bDIbM6A/xqdyGzG5CDdS/ARK3fsR RcuA== X-Gm-Message-State: AOAM532kBWJBq9YVywTnuXLs4J5vwBvOPN8I14uMPqEwkWuNxonS1gUK f+FnMfhhudonpFQ4MZyGmsbFyLOV49s= X-Google-Smtp-Source: ABdhPJxXG4eYiXNAI2jaJ7exvC+XMYl9AtOah+5ZS9dYZ1pLjhjaJHjCiCnPeKWlYOMzFoX8N5dckw== X-Received: by 2002:a05:6402:491:: with SMTP id k17mr1550767edv.370.1606898190411; Wed, 02 Dec 2020 00:36:30 -0800 (PST) Received: from [10.101.1.111] ([81.196.63.17]) by smtp.gmail.com with ESMTPSA id rv11sm637744ejb.80.2020.12.02.00.36.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2020 00:36:29 -0800 (PST) To: pgsql-general@lists.postgresql.org From: Levente Birta Subject: pg_cron question Message-ID: <9409d240-a975-bdd2-c3e4-983b4bf7f50e@gmail.com> Date: Wed, 2 Dec 2020 10:36:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi all Is there a way to run pg_cron job only once? Or can I get somehow inside the cronjob the ID of a running job to unschedule? Thanks Levi