pi_portal.modules.tasks.manifest.sqlite_dictionary.SqliteDictManifest

class pi_portal.modules.tasks.manifest.sqlite_dictionary.SqliteDictManifest(path: str, tablename: str)[source]

Bases: TaskManifestBase

SQLite 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.

__init__(path: str, tablename: str) None[source]
add(task: TaskBase[TaskArgsBase, Any]) None

Add a task to the manifest.

Parameters:

task (TaskBase[TaskArgsBase, Any]) – The task you wish to add.

close() None[source]

Close SQLite dictionary filehandle.

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:

TypeManifestMetrics

remove(task: TaskBase[TaskArgsBase, Any]) None

Remove a task from the manifest.

Parameters:

task (TaskBase[TaskArgsBase, Any]) – The task you wish to add.