File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,11 @@ def _get_crontab_exclude_query(self):
315315 hours_to_include += [4 ] # celery's default cleanup task
316316
317317 # Get all tasks with a simple numeric hour value
318- # Create a list of all valid hour values (0-23)
318+ # Create a list of all valid hour values (0-23).
319+ # Both zero-padded ("00"–"09") and non-padded ("0"–"23") formats are included
320+ # to account for variations in how hour values are stored in the database.
321+ # Some databases or configurations may store single-digit hours without padding,
322+ # while others may use zero-padded strings. Including both ensures compatibility.
319323 # both padded and non-padded
320324 valid_hours = [str (hour ) for hour in range (24 )] + [
321325 f"{ hour :02d} " for hour in range (10 )
You can’t perform that action at this time.
0 commit comments