File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4949# We are running pytest with "-n 20". For a rough estimation, let's say all
5050# parallel sessions run in parallel. So that allows 1000/20 = 50 mutations per
5151# minute. One session takes about 1 minute to create a remote function. This
52- # would allow 50-1 = 49 deletions per session. As a heuristic let's use half of
53- # that potential for the clean up.
54- MAX_NUM_FUNCTIONS_TO_DELETE_PER_SESSION = 25
52+ # would allow 50-1 = 49 deletions per session.
53+ # However, because of b/356217175 the service may throw ResourceExhausted("Too
54+ # many operations are currently being executed, try again later."), so we peg
55+ # the cleanup to a more controlled rate.
56+ MAX_NUM_FUNCTIONS_TO_DELETE_PER_SESSION = 15
5557
5658CURRENT_DIR = pathlib .Path (__file__ ).parent
5759DATA_DIR = CURRENT_DIR .parent / "data"
You can’t perform that action at this time.
0 commit comments