Skip to content

Commit

Permalink
bug: timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
drwillcharles committed Feb 6, 2025
1 parent 707b793 commit 2662671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flaml/automl/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def limit_resource(memory_limit, time_limit):
if time_limit is not None:
try:
signal.signal(signal.SIGALRM, TimeoutHandler)
signal.alarm(int(time_limit) or 1)
signal.alarm(int(time_limit) + 1 or 1)
main_thread = True
except ValueError:
pass
Expand Down

0 comments on commit 2662671

Please sign in to comment.