Skip to content

before_first_request is deprecated  #10940

@mjthecoder65

Description

@mjthecoder65

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/compute/managed-instances/demo/app.py#L42

Describe the issue

Flask has deprecated the use of before_first_request decorator. Whenever someone tries to run the application, it raises an Exception.

Metadata

Metadata

Labels

api: computeIssues related to the Compute Engine API.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions