Databricks SDK for JavaScript
    Preparing search index...

    Interface SparkPythonTask

    interface SparkPythonTask {
        parameters?: string[];
        pythonFile?: string;
        source?: Source;
    }
    Index

    Properties

    parameters?: string[]

    Command line parameters passed to the Python file.

    Use Task parameter variables to set parameters containing information about job runs.

    pythonFile?: string

    The Python file to be executed. Cloud file URIs (such as dbfs:/, s3:/, adls:/, gcs:/) and workspace paths are supported. For python files stored in the workspace, the path must be absolute and begin with /. For files stored in a remote repository, the path must be relative. This field is required.

    source?: Source

    Optional location type of the Python file. When set to WORKSPACE or not specified, the file will be retrieved from the local workspace or cloud location (if the python_file has a URI format). When set to GIT, the Python file will be retrieved from a Git repository defined in git_source.

    • WORKSPACE: The Python file is located in a workspace or at a cloud filesystem URI.
    • GIT: The Python file is located in a remote Git repository.