set 15min timeout
This commit is contained in:
parent
ad7fbcc364
commit
323c09d3c5
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ with open(DATA_FILE, 'r') as f:
|
||||||
def analyze_game(game_id: int):
|
def analyze_game(game_id: int):
|
||||||
max_draw_pile_size = 15
|
max_draw_pile_size = 15
|
||||||
try:
|
try:
|
||||||
result = subprocess.run(['./endgame-analyzer', '-g', str(game_id), '-d', str(max_draw_pile_size), '--interactive', '0', '--quiet', '-r'], stdout=subprocess.PIPE, timeout=10)
|
result = subprocess.run(['./endgame-analyzer', '-g', str(game_id), '-d', str(max_draw_pile_size), '--interactive', '0', '--quiet', '-r'], stdout=subprocess.PIPE, timeout=60*15)
|
||||||
raw_output = result.stdout
|
raw_output = result.stdout
|
||||||
except subprocess.TimeoutExpired as time_err:
|
except subprocess.TimeoutExpired as time_err:
|
||||||
raw_output = time_err.stdout
|
raw_output = time_err.stdout
|
||||||
|
|
Loading…
Reference in a new issue