Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples lack a serverless job with environments #55

Open
haschdl opened this issue Dec 22, 2024 · 0 comments
Open

Examples lack a serverless job with environments #55

haschdl opened this issue Dec 22, 2024 · 0 comments

Comments

@haschdl
Copy link

haschdl commented Dec 22, 2024

For Serverless jobs, Python dependencies must be declared as part of an environment.

Customers are going to private_wheel_packages and job_with_multiple_wheels and realizing it doesn't work with Serverless. New examples that combine Serverless and wheels are needed.

Example of a working serverless job and an environment that deploys wheels - a direct adaptation of job_with_multiple_wheels

resources:
  jobs:
    serverless_job:
      name: "Example with multiple wheels"
      tasks:
        - task_key: task
          spark_python_task:
            python_file: ../src/call_wheel.py
          environment_key: default
      # A list of task execution environment specifications that can be referenced by tasks of this job.
      environments:
        - environment_key: default

          # Full documentation of this spec can be found at:
          # https://docs.databricks.com/api/workspace/jobs/create#environments-spec
          spec:
            client: "1"
            dependencies:
              - ../my_custom_wheel2/dist/my_custom_wheel2-0.0.1-py3-none-any.whl
              - ../my_custom_wheel1/dist/my_custom_wheel1-0.0.1-py3-none-any.whl
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

No branches or pull requests

1 participant