Skip to content

fix the wrong process_time issue#3

Open
tyl12 wants to merge 1 commit intobrokespace:mainfrom
tyl12:main
Open

fix the wrong process_time issue#3
tyl12 wants to merge 1 commit intobrokespace:mainfrom
tyl12:main

Conversation

@tyl12
Copy link
Copy Markdown

@tyl12 tyl12 commented Dec 26, 2024

Hi,
This patch addresses a critical issue with the process_time. Specifically, it removes the finally block, which was unintentionally overwriting the correct internal return value, setting process_time to None.

Upon testing the validator code, I observed that the task process_time is consistently reported as 12 seconds, resulting in a speed score of 0.188875, regardless of the actual response time from miners.

The root cause of this issue is that the return statement in the finally block overwrites the return value from the try block, replacing it with None instead of the intended synapse.dendrite.process_time.

Additionally, you can verify this behavior in the W&B dashboard, where all timing metrics are recorded as 12 seconds.

Thanks & Merry Christmas :)

… the internal correct return, with process_time as None.

Signed-off-by: yltony12 <yltony12@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant