Skip to content

[FEAURE] add skip_on_delete property for query resources #56

Description

@jeffreyaven

This query fails if the workspace does not exist, which should be the behavior for build or test operations but not for teardown ops

  - name: workspace_ready
    description: wait until the new workspace answers the workspace API as the deploying principal
    type: query
    file: databricks_workspace/current_user.iql
    props: []
    exports:
      - workspace_principal

fails with:

[2026-09-09T18:12:41Z ERROR stackql_deploy] Fatal error (matched 'dial tcp:'):

Query execution failed: query returns error: Get "https://<unknown>.cloud.databricks.com/api/2.1/unity-catalog/storage-credentials/datapao_lakehouse_dev_storage_credential": dial tcp: lookup <unknown>.cloud.databricks.com: no such host

adding in an additional property would solve this:

  - name: workspace_ready
    description: wait until the new workspace answers the workspace API as the deploying principal
    type: query
    file: databricks_workspace/current_user.iql
    skip_on_delete: true
    props: []
    exports:
      - workspace_principal

this would export null for workspace_principal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions