Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having the threshold also on OrTrigger? #453

Open
sneko opened this issue Aug 18, 2020 · 8 comments · May be fixed by #1004
Open

Having the threshold also on OrTrigger? #453

sneko opened this issue Aug 18, 2020 · 8 comments · May be fixed by #1004

Comments

@sneko
Copy link

sneko commented Aug 18, 2020

Hi @agronholm ,

Just curious : you added the threshold parameter onto AndTrigger but I'm wondering if you plan or if you could add it to the OrTrigger?

In my case I may have different intervals that can sometimes be distant from 0, 1 or 2 seconds and I would like to avoid triggering all of them, but just one when in the same threshold/window.

Thank you,

@agronholm
Copy link
Owner

Sounds like something I would like to consider. I have more important work to do on v4.0 first though.

@agronholm agronholm modified the milestone: 4.0 Sep 26, 2020
@sneko
Copy link
Author

sneko commented Mar 29, 2021

Hi @agronholm , is it still something on your roadmap?

Thank you,

@agronholm
Copy link
Owner

Yes, have a look at #465.

@sneko
Copy link
Author

sneko commented Mar 29, 2021

@agronholm inside there is a check:

"threshold" value for OrTrigger (#427)

It seems it should point to this current one #453 (I didn't see threshold mention in the #427)?

@agronholm
Copy link
Owner

It seems it should point to this current one #453 (I didn't see threshold mention in the #427)?

Corrected.

@agronholm
Copy link
Owner

I'm looking into getting this to v4.0. If you want this feature, the best course of action would be to make a PR against master. I was not sure how the threshold logic would work with OrTrigger so I got a bit confused trying to implement it. I would rather delegate this to someone while I work on other features.

@rafalkrupinski
Copy link

With stateful combining triggers now, what problem does threshold solve?

@HomerusJa
Copy link

Just trying to understand the feature right now. As far as I understand, if a trigger triggers the next OrTrigger, you dont want that OrTrigger to be triggered again for threshold seconds, correct? If that, maybe we should pick another name as this is a completely different functionality as the threshold parameter for the AndTrigger. I would suggest something like cooldown_period, as it is used in similar contexts elsewhere, accurately describes the functionality, and is distinct from the AndTriggers threshold concept. If that is correct, I might give it a try implementing it myself before Christmas 🎄

HomerusJa added a commit to HomerusJa/apscheduler that referenced this issue Dec 21, 2024
Also, just remembered to use pre-commit (-:
@HomerusJa HomerusJa linked a pull request Dec 21, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants