Documentation: Fix quartz cron expression#24576
Merged
maliming merged 2 commits intoabpframework:devfrom Jan 8, 2026
Merged
Conversation
maliming
approved these changes
Jan 8, 2026
Member
|
Thanks @LEIRONGHUA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 * * ?