Skip to content

Commit 30aaae5

Browse files
authored
chore: reduce the remote_function cleanup rate (#873)
* chore: reduce the `remote_function` cleanup rate * minor comment change
1 parent 8e00fe2 commit 30aaae5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/system/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@
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

5658
CURRENT_DIR = pathlib.Path(__file__).parent
5759
DATA_DIR = CURRENT_DIR.parent / "data"

0 commit comments

Comments
 (0)