zhongjiajie opened a new issue #7803: URL: https://github.com/apache/dolphinscheduler/issues/7803
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened In switch example, we do not set global para for it, and it would fail while trying to run this example https://github.com/apache/dolphinscheduler/blob/946a0c7c5768506e7ca92a21e7aed6ad5aa60871/dolphinscheduler-python/pydolphinscheduler/examples/task_switch_example.py#L37-L40. Maybe we should add assert to check if param setted in https://github.com/apache/dolphinscheduler/blob/946a0c7c5768506e7ca92a21e7aed6ad5aa60871/dolphinscheduler-python/pydolphinscheduler/examples/task_switch_example.py#L44-L47 ### What you expected to happen Should hint user when global param not setted ### How to reproduce run `python ./example/task_switch_example.py` ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
