feat: Add cloud_function_cpus option to remote_function#2475
feat: Add cloud_function_cpus option to remote_function#2475TrevorBergeron merged 11 commits intomainfrom
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
| return 1 | ||
| elif memory_mib <= 8192: | ||
| return 2 | ||
| elif memory_mib <= 8192: |
| if threads: | ||
| env_vars["THREADS"] = str(threads) | ||
| if env_vars: | ||
| function.service_config.environment_variables = env_vars |
There was a problem hiding this comment.
How do you know where to put these configs to? Like this function.service_config.environment_variables? Is there a cloud run doc?
There was a problem hiding this comment.
Uhh, I just found it with ide auto-complete.
The specific environment variables are from functions framework hooks: see GoogleCloudPlatform/functions-framework-python#241
|
📢 Migration Notice: 📢 This library is moving to the google-cloud-python monorepo soon. We kept this PR open due to recent activity. We would like to finalize this PR so it can be merged if it is critical. If we don't hear from the PR author, we will close this PR in the next few days. The PR can then be re-opened in the monorepo once the migration is complete and work can continue there. |
9f4e454 to
16cca4b
Compare
PR created by the Librarian CLI to initialize a release. Merging this PR will auto trigger a release. Librarian Version: v0.8.3 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:160860d189ff1c2f7515638478823712fa5b243e27ccc33a2728669fa1e2ed0c <details><summary>bigframes: v2.37.0</summary> ## [v2.37.0](v2.36.0...v2.37.0) (2026-03-03) ### Features * Add cloud_function_cpus option to remote_function (#2475) ([4caf74c](4caf74cc)) * add display.render_mode to control DataFrame/Series visualization (#2413) ([7813eaa](7813eaa6)) * Support pd.col expressions with .loc and getitem (#2473) ([ae5c8b3](ae5c8b32)) * add support for Python 3.14 (#2232) ([c25a6d0](c25a6d01)) * Support pd.col simple aggregates (#2480) ([cb00daa](cb00daab)) * add dt.tz_localize() (#2469) ([f70f93a](f70f93a1)) * Update bigquery.ai.generate_table output_schema to allow Mapping type (#2463) ([f7fd189](f7fd1895)) ### Bug Fixes * upload local data through write API if nested JSONs detected (#2478) ([01dc5a3](01dc5a34)) * allow IsInOp with same dtypes regardless nullable (#2466) ([1d81b41](1d81b414)) ### Documentation * Add code examples to configuration docstrings (#2352) ([3c21993](3c21993e)) * Move readme content to new User Guide section (#2464) ([61a9484](61a94845)) * add code sample and docstring for bpd.options.experiments.sql_compiler (#2474) ([867951b](867951bc)) * use direct API for image (#2465) ([8a1a82f](8a1a82f7)) * Fix recall_score doc example (#2477) ([a6f499c](a6f499c1)) * Skip inherited methods, use autosummary only for big classes (#2470) ([a951249](a9512498)) * add bigframes default connection warning (#2471) ([f1bbba2](f1bbba23)) </details>
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕