AndTrigger does not work
See original GitHub issueHi Here is part of the code, but the scheduler does not work And the example from the documentation also does not work.
from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.triggers.interval import IntervalTrigger
from apscheduler.triggers.cron import CronTrigger
from apscheduler.triggers.combining import AndTrigger
scheduler = BlockingScheduler()
trigger_day = AndTrigger([IntervalTrigger(minutes=2), CronTrigger(hour='7-22')])
scheduler.add_job(job, trigger_day, max_instances=3, id='test')
scheduler.replace_existing = True
scheduler.start()
What am I doing wrong?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:12 (8 by maintainers)
Top Results From Across the Web
AndTrigger does not work with IntervalTrigger #361 - GitHub
The actual problem is that because IntervalTrigger starts counting from current time, it never agrees with the CronTrigger because CronTrigger never produces ...
Read more >apscheduler.triggers.combining - Read the Docs
The trigger is considered to be finished when any of the given triggers has finished its schedule. Trigger alias: and. Parameters. triggers (list)...
Read more >Python Aps Scheduler run in interval between two weekdays ...
trigger1 is executed monday to fri from 0:00 to 19:00 every day (not executed from ... trigger1 = AndTrigger([IntervalTrigger(minutes=1), ...
Read more >Debugging Job Scheduler and Trigger Problems - Datameer
If you experience the problem that scheduled jobs are not running anymore, but you can run them manually. Step-by-step guide. 1) Add within...
Read more >Collision and trigger not working and can not detected on ...
Collision and trigger not working and can not detected on mobile device. The collision and trigger worked fine on the game view in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A bit after I wrote my previous comment I ended up attempting to fix this just like your first suggestion but I haven’t got it to work yet.
It seems that this AndTrigger can never find a next fire time. This is a bug.