dbx icon indicating copy to clipboard operation
dbx copied to clipboard

dbx deploy fails when no workflows are defined

Open crash-g opened this issue 3 years ago • 0 comments

Expected Behavior

Calling dbx without defining any workflow should not raise an exception (it should be a no-op).

Current Behavior

When executing

dbx deploy --deployment-file=config.json --no-package

with the following config.json

{
  "build": {
    "no_build": true
  },
  "environments": {
    "staging": {
      "workflows": []
    }
  }
}

dbx fails with Exception: No jobs provided for deployment

Context

We generate our config.json file automatically and depending on the environment it may be empty. This was never a problem in past versions of dbx, but with commit ca25fc96 an unconditional check has been introduced which makes our pipelines fail as described above.

Would it be possible to revert to the previous behavior, or at least give the possibility to turn the check off?

Your Environment

  • dbx version used: 0.7.5
  • Databricks Runtime version: 10.4

crash-g avatar Sep 21 '22 10:09 crash-g