Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Cleanup completes migration while a retained module still has an unfinished built-in run

Đang mở
#65 0 bình luận 0 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
66/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start with _refusal_for() in netbox_scripts/migration/cleanup.py and trace how permanent history refusals are ordered relative to live_script_jobs. Reproduce the cleanup flow with a retained module that has a waiting or running built-in Job, including Jobs attached directly to the module. Done means cleanup reports the module as blocked and leaves the migration open in both cases.

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

Mô tả

app: scripts severity: low status: backlog type: bug
Plugin Version

v0.0.1

NetBox Version

v4.7.3

Python Version

3.12

Steps to Reproduce
  1. Create a built-in module containing two Custom Scripts, synchronized from a Data Source.
  2. Run one Script to completion. Remove its class from the source and synchronize the same module, keeping its Job history and the other Script.
  3. Under Scripts > Migration, complete the passes through Repoint references.
  4. As a superuser, schedule the remaining built-in Script for the following day.
  5. Select Clean up.
Expected Behavior

Cleanup counts the module as blocked and leaves migration open while it has a waiting or running built-in Job, even when its historical Jobs require the module to be retained.

Observed Behavior

Cleanup counts the module as retained, reports no blocked modules, and marks the migration migrated. Its warning mentions only the removed class's Job history. The scheduled Job still refers to the remaining built-in Script and can execute it later.

The same problem occurs when Job history belongs directly to the module. On main (7b7cdf1), _refusal_for() in netbox_scripts/migration/cleanup.py returns these permanent history refusals before checking live_script_jobs. A retained module does not keep the migration open.

Related: #4 covers Verify reporting, and #14 covers cleanup recovery advice.

Ngôn ngữ chính
Python
Star
8
Fork
0
Merge trung bình
11 giờ 35 phút
Pull request đã merge (30 ngày)
20

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

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 netbox-community/netbox-scripts

Tất cả issue của netbox-community/netbox-scripts

Issue tương tự

Thêm issue về Python

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.