Skip to content

Documentation: Fix quartz cron expression#24576

Merged
maliming merged 2 commits intoabpframework:devfrom
LEIRONGHUA:fix-quartz-cron-expression
Jan 8, 2026
Merged

Documentation: Fix quartz cron expression#24576
maliming merged 2 commits intoabpframework:devfrom
LEIRONGHUA:fix-quartz-cron-expression

Conversation

@LEIRONGHUA
Copy link
Contributor

Description

The meaning of the Hangfire expression 0 23 * * *:

First digit 0: Minute is 0 minutes

Second digit 23: Hour is 11 PM

Third-fifth digits * * *: Execute daily, monthly, or weekly

Overall: Executes daily at 11 PM:00 PM

Converted to a Quartz expression:

Second digit: Because the first digit in Quartz is seconds, to achieve "whole minute and whole second" execution, fill in 0 for the seconds digit.
Minute digit: Corresponds to the Hangfire minute digit 0.
Hour digit: Corresponds to the Hangfire hour digit 23.
Day/Month/Weekday digit: Maintain wildcards, and to avoid conflicts between day and weekday in Quartz (Quartz does not allow specifying both day and weekday values ​​simultaneously), it is recommended to use ? (indicates no specification) for the weekday digit.

Final result: 0 0 23 * * ?

@LEIRONGHUA LEIRONGHUA changed the title Fix quartz cron expression Documentation: Fix quartz cron expression Jan 8, 2026
@maliming maliming self-requested a review January 8, 2026 07:51
@maliming
Copy link
Member

maliming commented Jan 8, 2026

Thanks @LEIRONGHUA

@maliming maliming merged commit 063c177 into abpframework:dev Jan 8, 2026
1 check passed
@LEIRONGHUA LEIRONGHUA deleted the fix-quartz-cron-expression branch March 2, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants