diff --git a/asyncz/stores/file.py b/asyncz/stores/file.py index 4b4b051..8f02dcc 100644 --- a/asyncz/stores/file.py +++ b/asyncz/stores/file.py @@ -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, ), ) ]