agronholm / agronholm/apscheduler

Implement schedule filters

Đang mở
#906 4 bình luận 2 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
7.6k
Fork
783
Merge trung bình
4 ngày 8 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### Things to check first

- [X] I have searched the existing issues and didn't find my feature already requested there

### Feature description

Schedules would receive the ability to filter run times returned from a trigger. If a filter rejects a run time, then the next fire time would be requested from the trigger, until a fire time is received that passes all the filters.

This function was previously served by `AndTrigger`, but it has proven to be very problematic in practice. There might be grounds for removal of `AndTrigger` if this feature is implemented.

### Use case

A common use case for this is skipping holidays, as that requires special logic that would ordinarily require customizing a trigger.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.