File tree 1 file changed +9
-5
lines changed 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 43
43
44
44
# Use this to control the number of cloud functions being deleted in a single
45
45
# test session. This should help soften the spike of the number of mutations per
46
- # minute tracked against a quota limit (default 60, increased to 120 for
47
- # bigframes-dev project) by the Cloud Functions API
48
- # We are running pytest with "-n 20". Let's say each session lasts about a
49
- # minute, so we are setting a limit of 120/20 = 6 deletions per session.
50
- MAX_NUM_FUNCTIONS_TO_DELETE_PER_SESSION = 6
46
+ # minute tracked against the quota limit:
47
+ # Cloud Functions API -> Per project mutation requests per minute per region
48
+ # (default 60, increased to 1000 for the test projects)
49
+ # We are running pytest with "-n 20". For a rough estimation, let's say all
50
+ # parallel sessions run in parallel. So that allows 1000/20 = 50 mutations per
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
51
55
52
56
CURRENT_DIR = pathlib .Path (__file__ ).parent
53
57
DATA_DIR = CURRENT_DIR .parent / "data"
You can’t perform that action at this time.
0 commit comments