pyfarm.models.tasklog module¶
Task Log Models¶
Model describing a log file for a task or batch of tasks.
A task can be associated with more than one log file, for example because it needed to be retried and there are logs for every attempt or because the job type used uses more than one process to execute a batch. A log file can belong to more than one task if tasks have been batched together for execution.
-
class
pyfarm.models.tasklog.
TaskLog
(**kwargs)[source]¶ Bases:
flask_sqlalchemy.Model
,pyfarm.models.core.mixins.UtilityMixins
,pyfarm.models.core.mixins.ReprMixin
Table which represents a single task log entry
-
agent
¶ Relationship between an
TaskLog`and the :class:`pyfarm.models.Agent
it was created on
-
agent_id
¶ The agent this log was created on
-
created_on
¶ The time when this log was created
-
id
¶ Provides an id for the current row. This value should never be directly relied upon and it’s intended for use by relationships.
-
identifier
¶ The identifier for this log
-
task_associations
¶ Relationship between tasks and their logs.
-
-
class
pyfarm.models.tasklog.
TaskTaskLogAssociation
(**kwargs)[source]¶ Bases:
flask_sqlalchemy.Model
Stores an association between the task table and a task log
-
attempt
¶ The attempt number for the given task log
-
log
¶
-
state
¶ The state of the work being performed
-
task
¶
-
task_id
¶ The ID of the job a task log is associated with
-
task_log_id
¶ The ID of the task log
-