From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 603681FF171 for ; Fri, 29 Nov 2024 15:21:30 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 034AC1AA2B; Fri, 29 Nov 2024 15:21:33 +0100 (CET) Message-ID: <211810f3-3eef-42bf-b17d-6f8f5f24c8a8@proxmox.com> Date: Fri, 29 Nov 2024 15:20:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta To: Proxmox Backup Server development discussion , Thomas Lamprecht , =?UTF-8?Q?Fabian_Gr=C3=BCnbichler?= References: <20241129131329.765815-1-f.gruenbichler@proxmox.com> <20241129131329.765815-3-f.gruenbichler@proxmox.com> <00e24e50-5df8-4c62-abe2-e14916c4a7ba@proxmox.com> Content-Language: en-US From: Dominik Csapak In-Reply-To: <00e24e50-5df8-4c62-abe2-e14916c4a7ba@proxmox.com> X-SPAM-LEVEL: Spam detection results: 0 AWL 0.016 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com] Subject: Re: [pbs-devel] [PATCH proxmox 2/2] rest-server: close race window when updating worker task count X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" T24gMTEvMjkvMjQgMTQ6MjcsIFRob21hcyBMYW1wcmVjaHQgd3JvdGU6Cj4gQW0gMjkuMTEuMjQg dW0gMTQ6MTMgc2NocmllYiBGYWJpYW4gR3LDvG5iaWNobGVyOgo+PiB0aGlzIG1pbWljcyBob3cg dGhlIGNvdW50IGlzIHVwZGF0ZWQgd2hlbiBzcGF3bmluZyBhIG5ldyB0YXNrIC0gdGhlIGxvY2sg c2NvcGUKPj4gbmVlZHMgdG8gY292ZXIgdGhlIGNvdW50IHVwZGF0ZSBpdHNlbGYsIGVsc2UgdGhl cmUncyBhIHJhY2Ugd2hlbiBtdWx0aXBsZQo+PiB3b3JrZXIncyBsb2cgdGhlaXIgcmVzdWx0IGF0 IHRoZSBzYW1lIHRpbWUuLgo+Pgo+PiBDby1kZXZlbG9wZWQtYnk6IERvbWluaWsgQ3NhcGFrIDxk LmNzYXBha0Bwcm94bW94LmNvbT4KPj4gU2lnbmVkLW9mZi1ieTogRmFiaWFuIEdyw7xuYmljaGxl ciA8Zi5ncnVlbmJpY2hsZXJAcHJveG1veC5jb20+Cj4+IC0tLQo+PiAgIHByb3htb3gtcmVzdC1z ZXJ2ZXIvc3JjL3dvcmtlcl90YXNrLnJzIHwgMyArKy0KPj4gICAxIGZpbGUgY2hhbmdlZCwgMiBp bnNlcnRpb25zKCspLCAxIGRlbGV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