def deserialize_entry(entry, schedule_decoder=decode_schedule):
return ScheduleEntry(
name=entry['name'],
task=entry['task'],
schedule=schedule_decoder(entry['schedule']),
args=entry['args'],
kwargs=entry['kwargs'],
last_run_at=decode_datetime(entry['last_run_at'], allow_null=True),
total_run_count=entry['total_run_count'],
options=entry['options'],
)
评论列表
文章目录