flexmeasures.data.models.task_runs
Classes
- class flexmeasures.data.models.task_runs.LatestTaskRun(**kwargs)
” Log the (latest) running of a task. This is intended to be used for live monitoring. For a full analysis, there are log files.
- __init__(**kwargs)
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.
- query: t.ClassVar[Query]
A SQLAlchemy query for a model. Equivalent to
db.session.query(Model)
. Can be customized per-model by overridingquery_class
.Warning
The query interface is considered legacy in SQLAlchemy. Prefer using
session.execute(select())
instead.