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 49
49
# We are running pytest with "-n 20". For a rough estimation, let's say all
50
50
# parallel sessions run in parallel. So that allows 1000/20 = 50 mutations per
51
51
# 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
55
57
56
58
CURRENT_DIR = pathlib .Path (__file__ ).parent
57
59
DATA_DIR = CURRENT_DIR .parent / "data"
You can’t perform that action at this time.
0 commit comments