From 7b3ac81a2ff29f2869a3bde2b3980e0a354e6298 Mon Sep 17 00:00:00 2001 From: Ashley Wright Date: Fri, 15 Nov 2024 18:31:00 +0000 Subject: [PATCH] Kill all processes more reliably --- validator/submission_tester/update.sh | 2 +- validator/weight_setting/validator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/validator/submission_tester/update.sh b/validator/submission_tester/update.sh index a60a0162..57aa1101 100755 --- a/validator/submission_tester/update.sh +++ b/validator/submission_tester/update.sh @@ -12,7 +12,7 @@ fi chown -R api:api /api -pkill -9 -f "python.*\/sandbox" || true +pkill -9 -u sandbox || true rm -rf /sandbox mkdir /sandbox chown sandbox:sandbox /sandbox diff --git a/validator/weight_setting/validator.py b/validator/weight_setting/validator.py index c6ff254f..4e08d614 100644 --- a/validator/weight_setting/validator.py +++ b/validator/weight_setting/validator.py @@ -846,7 +846,7 @@ def get_uid(hotkey: Key) -> Uid | None: if not uid: continue - if error_message != self.invalid.get(uid): + if error_message and error_message != self.invalid.get(uid): logger.info(f"Marking {hotkey}'s submission as invalid: '{error_message}'") self.invalid[uid] = error_message