def __init__(self, path="/opt/tm/logs/", project_name=None):
"""Tasks manager constructor"""
self.log = Logger(path, project_name)
if not self._check_if_exists():
self.create_table("NotStarted", "WorkingOn", "Completed")
# Use this queue to save the most recent new, modified, on process or
# completed tasks. These tasks should be saved in tuples along with
# their corresponding table. The length of this queue should not be
# greater than 10 tasks.
self.recent_tasks = TaskCache(10)
# Lets the application know whether there are partial commits left to
# push to remote repository.
self.partials_exist = Partials(path)
评论列表
文章目录