Skip to content

Commit

Permalink
Kill all processes more reliably
Browse files Browse the repository at this point in the history
  • Loading branch information
MsRandom committed Nov 15, 2024
1 parent 25fc589 commit 7b3ac81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion validator/submission_tester/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion validator/weight_setting/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7b3ac81

Please sign in to comment.