Skip to content

Conversation

@hejcman-enverus
Copy link

Changes

An initial exploration of a possible implementation of post deploy hooks based on the discussion in #3801.

Usage within databricks.yml:

python:
  post_deploy:
    - "resources:on_deploy_complete"

Implementation within resources/__init__.py:

def on_deploy_complete(bundle: Bundle) -> None:
    """Post-deploy callback that logs deployed resource IDs."""
    job_id = bundle.get_resource_id("jobs", "test_job")
    ...

Why

See #3801

Tests

  • Tests added alongside the code.
  • Compiled and tested locally.

@github-actions
Copy link

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 3902
  • Commit SHA: 4800ae4f6763225ce88aa06d0331327b1f63df71

Checks will be approved automatically on success.

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.

1 participant