Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2022 03:45 AM
Hey Kaniz, Sorry for the late response.
I think i figured it out, Databricks pass parameters to entry point via cmd.
There is two ways to set an entry point for a job -
1) Using entry point in setup.py - like Vivian mentioned in the above answer.
2) export function from init file of the package ( e.g. from .main import func)
Those two approaches must don't get any parameters, the parameters passed via cmd so you can get the params using argparser or from sys.argv