pyfarm.models.tasklog module

TaskLog

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 jobtype 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

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
class pyfarm.models.tasklog.TaskTaskLogAssociation(**kwargs)[source]

Bases: flask_sqlalchemy.Model

attempt
log
task
task_id
task_log_id