Job `triggers` does not follow pause / unpause overrides

Đang mở
#7,359 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, yaml
Lĩnh vực
backend, cli

Hướng nghiên cứu

Start by reading the bundle deployment code that applies development mode and preset overrides to job triggers, then look for existing tests covering trigger pause status. Reproduce with the provided databricks.yml configuration and databricks bundle deploy; done means triggers are paused in development mode and when trigger_pause_status: PAUSED is configured, with tests covering both cases.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

DABs
Describe the issue

When specifying multiple triggers for a job, they remain UNPAUSED even if PAUSED is preset or the target uses development mode

Configuration

databricks.yml:

bundle:
  name: trigger-pause-repro

targets:
  dev:
    default: true
    mode: development

resources:
  jobs:
    trigger_repro:
      name: trigger-pause-repro

      tasks:
        - task_key: test
          notebook_task:
            notebook_path: hello.py

      triggers:
        - periodic:
            interval: 1
            unit: DAYS

in the same directory, any valid databricks source notebook hello.py

Steps to reproduce the behavior
  1. Run databricks bundle deploy
  2. Run databricks bundle open trigger_repro
  3. The job is not paused
Expected Behavior

The job is paused, because we deployed with mode: development

Actual Behavior

The job is not paused. This also happens when setting

presets:
      trigger_pause_status: PAUSED

under the default target.

OS and CLI version

Windows, CLI 1.22.1

Is this a regression?

No, triggers in preview as of writing

Ngôn ngữ chính
Go
Star
424
Fork
261
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
210

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của databricks/cli

Tất cả issue của databricks/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.