Skip to content

Commit

Permalink
fix sort criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Jan 3, 2025
1 parent 88bfad3 commit 321d3a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion asyncz/stores/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def get_tasks(self) -> list[TaskType]:
key=lambda task_stat: (
int(task_stat[0].next_run_time is None),
task_stat[0].next_run_time,
task_stat[1].st_mtime,
# sort for task creation not update
task_stat[1].st_ctime,
),
)
]
Expand Down

0 comments on commit 321d3a7

Please sign in to comment.