def root_resource_ids(self, plugin):
"""Return the PK of all StorageResourceRecords for 'plugin' which have no parents"""
from chroma_core.lib.storage_plugin.manager import storage_plugin_manager
# We will be polling, to need to commit to see new data
with transaction.commit_manually():
transaction.commit()
ids = storage_plugin_manager.get_scannable_resource_ids(plugin)
transaction.commit()
return ids
scan_daemon.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录