pi_portal.modules.tasks.manifest.sqlite_dictionary.SqliteDictManifest
- class pi_portal.modules.tasks.manifest.sqlite_dictionary.SqliteDictManifest(path: str, tablename: str)[source]
Bases:
TaskManifestBaseSQLite dictionary implementation of the task manifest.
- Parameters:
path (str) – The path to database file that will be used.
tablename (str) – The name of the SQLite table that will be used.
- add(task: TaskBase[TaskArgsBase, Any]) None
Add a task to the manifest.
- Parameters:
task (TaskBase[TaskArgsBase, Any]) – The task you wish to add.
- property contents: List[TaskBase[TaskArgsBase, Any]]
Return the contents of the manifest, without disk activity.
- metrics() TypeManifestMetrics
Return metrics for this manifest, without disk activity.
- Return type:
- remove(task: TaskBase[TaskArgsBase, Any]) None
Remove a task from the manifest.
- Parameters:
task (TaskBase[TaskArgsBase, Any]) – The task you wish to add.