Skip to content

Commit

Permalink
Try higher timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Sep 19, 2023
1 parent 9117779 commit e0a36bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spinnman/processes/get_n_cores_in_state_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
from spinnman.messages.scp.impl import CountState
from .abstract_multi_connection_process import AbstractMultiConnectionProcess

# Timeout for getting core state count; higher due to more waiting needed
GET_CORE_COUNT_TIMEOUT = 2.0


class GetNCoresInStateProcess(AbstractMultiConnectionProcess):
__slots__ = [
Expand All @@ -26,7 +29,7 @@ def __init__(self, connection_selector):
:type connection_selector:
AbstractMultiConnectionProcessConnectionSelector
"""
super().__init__(connection_selector)
super().__init__(connection_selector, timeout=GET_CORE_COUNT_TIMEOUT)
self._n_cores = 0

def __handle_response(self, response):
Expand Down

0 comments on commit e0a36bc

Please sign in to comment.