luigi.db_task_history module¶
Provides a database backend to the central scheduler. This lets you see historical runs. See Enabling Task History for information about how to turn out the task history feature.
-
class
luigi.db_task_history.
DbTaskHistory
[source]¶ Bases:
luigi.task_history.TaskHistory
Task History that writes to a database using sqlalchemy. Also has methods for useful db queries.
-
CURRENT_SOURCE_VERSION
= 1¶
-
-
class
luigi.db_task_history.
TaskParameter
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
Table to track luigi.Parameter()s of a Task.
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
task_id
¶
-
name
¶
-
value
¶
-
-
class
luigi.db_task_history.
TaskEvent
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
Table to track when a task is scheduled, starts, finishes, and fails.
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
id
¶
-
task_id
¶
-
event_name
¶
-
ts
¶
-
-
class
luigi.db_task_history.
TaskRecord
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
Base table to track information about a luigi.Task.
References to other tables are available through task.events, task.parameters, etc.
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
id
¶
-
task_id
¶
-
name
¶
-
host
¶
-
parameters
¶
-
events
¶
-