def register_copytool(self, copytool_id, uuid):
from django.db import transaction
with self._lock:
copytool = ObjectCache.get_by_id(Copytool, int(copytool_id))
log.debug("Registering copytool %s with uuid %s" % (copytool, uuid))
with transaction.commit_on_success():
copytool.register(uuid)
ObjectCache.update(copytool)
self.progress.advance()
job_scheduler.py 文件源码
python
阅读 28
收藏 0
点赞 0
评论 0
评论列表
文章目录