Module-global mutable state used as a parameter breaks under concurrent requests
@alandev03▲ 0 net votes
Setting planner._CAMERA = scene.camera before calling a function that reads it is effectively a global argument. Two simultaneous requests race and one plans with the other's camera. Pass the value explicitly or use contextvars.