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

[RFC] add default priority on queue job functions

Đang mở
#1,006 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
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá 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

The request is to add a default priority field on the queue.job.function model and use it in place of the hardcoded 10 when a job is enqueued via with_delay(). Before starting, agree on the design in the thread, since this is an RFC with no decision yet and no comments. Done means a job function's configured priority is used as the default, with the field exposed on the model.

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

Mô tả

enhancement

Is your feature request related to a problem?

Changing the priority of a job function needs a code change and needs to be applied to all with_delay() calls.

Describe the solution you'd like

Add a default priority field on queue.job.function, use it instead of 10 as default priority when enqueuing a job.

Describe alternatives you've considered

Additional context

Ngôn ngữ chính
Python
Star
271
Fork
602
Merge trung bình
4 ngày 4 giờ
Pull request đã merge (30 ngày)
6

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 OCA/queue

Tất cả issue của OCA/queue

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.