Skip to content

I don't know how to define job run time #762

Answered by agronholm
breezechime asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming a 10 second interval works too:

trigger = OrTrigger([
    CronTrigger(day_of_week='0-4', hour='9', minute='28-59', second='*/10'),
    CronTrigger(day_of_week='0-4', hour='10', second='*/10'),
    CronTrigger(day_of_week='0-4', hour='11', minute='0-30', second='*/10'),
    CronTrigger(day_of_week='0-4', hour='13-14', second='*/10')),
    CronTrigger(day_of_week='0-4', hour='15'),
])

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@agronholm
Comment options

@breezechime
Comment options

@breezechime
Comment options

@agronholm
Comment options

Answer selected by breezechime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #761 on July 24, 2023 07:24.