Skip to content

Adds compat flag which disables global Python handlers.#4616

Merged
dom96 merged 1 commit intomainfrom
dominik/EW-9433-2
Jul 30, 2025
Merged

Adds compat flag which disables global Python handlers.#4616
dom96 merged 1 commit intomainfrom
dominik/EW-9433-2

Conversation

@dom96
Copy link
Contributor

@dom96 dom96 commented Jul 25, 2025

As a team we decided to remove global handlers in Python Workers and instead standardise on a Default class which defines the handler methods. This PR implements a new compat flag which enforces the usage of this class.

This PR also renames the default WorkerEntrypoint to start with a capital letter rather than lowercase.

Test Plan

bazel run @workerd//src/workerd/server/tests/python:sdk_development@

@dom96 dom96 requested a review from hoodmane July 25, 2025 18:09
@dom96 dom96 requested review from a team as code owners July 25, 2025 18:09
@dom96 dom96 force-pushed the dominik/EW-9433-2 branch 2 times, most recently from 317aec9 to f292b3a Compare July 28, 2025 15:55
@dom96 dom96 force-pushed the dominik/EW-9433-2 branch from 08151e4 to 19b4ce4 Compare July 30, 2025 11:08
@dom96 dom96 merged commit d7e9c38 into main Jul 30, 2025
21 of 23 checks passed
@dom96 dom96 deleted the dominik/EW-9433-2 branch July 30, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants