From 581ca1c075db334fcfae6357bfbf3e1d1dae2a50 Mon Sep 17 00:00:00 2001 From: Sveinung Gundersen Date: Wed, 12 Jul 2023 05:13:06 +1000 Subject: [PATCH] Added TODO --- src/crypt4gh_recryptor_service/compute.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crypt4gh_recryptor_service/compute.py b/src/crypt4gh_recryptor_service/compute.py index 6eaa6d6..2cbf25b 100644 --- a/src/crypt4gh_recryptor_service/compute.py +++ b/src/crypt4gh_recryptor_service/compute.py @@ -48,6 +48,8 @@ async def get_compute_key_info( settings.private_key_comment, verbose=settings.dev_mode) elif existing_key_files == 1: + # TODO: Fix special case when key expires in between the checks of the public and private + # keys. Suggestion: allow a couple of retries. raise Exception('Only one of the compute node public/private keypair files exists!' f' Key id: {compute_public_key_file.key_id}') else: