def serialize_entry(entry, schedule_encoder=encode_schedule):
return {
'name': entry.name,
'task': entry.task,
'schedule': schedule_encoder(entry.schedule),
'args': entry.args,
'kwargs': entry.kwargs,
'last_run_at': encode_datetime(entry.last_run_at, allow_null=True),
'total_run_count': entry.total_run_count,
'options': entry.options
}
评论列表
文章目录