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

Fix is_running_in_databricks function #264

Merged

Conversation

WeichenXu123
Copy link
Contributor

Fix is_running_in_databricks function

Signed-off-by: Weichen Xu <[email protected]>
Comment on lines 90 to 92
if "IS_IN_DATABRICKS_MODEL_SERVING_ENV" in os.environ:
# Serving container installs apache/spark, not databricks runtime.
return False
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this?

# Serving container installs apache/spark, not databricks runtime.
return False

if "DATABRICKS_RUNTIME_VERSION" in os.environ:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if "DATABRICKS_RUNTIME_VERSION" in os.environ:
return "DATABRICKS_RUNTIME_VERSION" in os.environ:

can we just return this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@harupy will this variable be present for Databricks Clusters and absent in Databricks Endpoints?

Signed-off-by: Weichen Xu <[email protected]>
@C-K-Loan C-K-Loan changed the base branch from master to release/532 May 21, 2024 22:20
@C-K-Loan C-K-Loan merged commit 94b1c3d into JohnSnowLabs:release/532 May 21, 2024
@C-K-Loan C-K-Loan mentioned this pull request May 21, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants