Skip to content

Commit

Permalink
add retry (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
KanaiYuma-aist authored Aug 19, 2022
1 parent 5766730 commit 8f6df87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aiaccel/master/abci_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import aiaccel
import subprocess
import time
from aiaccel.util.filesystem import retry


class AbciMaster(AbstractMaster):
Expand Down Expand Up @@ -40,6 +41,7 @@ def pre_process(self) -> None:
"run_*.sh"
)

@retry(_MAX_NUM=60, _DELAY=1.0)
def get_stats(self) -> None:
"""Get a current status and update.
Expand Down

0 comments on commit 8f6df87

Please sign in to comment.