agronholm / agronholm/apscheduler

Implement schedule filters

未关闭
#906 4 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
7.6k
派生
783
平均合并
4 天 8 小时
30 天内合并 PR
5

描述

### 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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。