def complete_job(self, job_id, errored):
if django.db.connection.connection and django.db.connection.connection != DISABLED_CONNECTION:
log.info("Job %d: open DB connection during completion" % job_id)
# Ensure that any changes made by this thread are visible to other threads before
# we ask job_scheduler to advance
with transaction.commit_manually():
transaction.commit()
self.put(('complete_job', (job_id, errored), {}))
job_scheduler.py 文件源码
python
阅读 53
收藏 0
点赞 0
评论 0
评论列表
文章目录