serializer.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:celery-beatx 作者: mixkorshun 项目源码 文件源码
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
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号