l.c.i.c.ICodeImportJob(Interface) : interface documentation

Part of lp.code.interfaces.codeimportjob View In Hierarchy

A pending or active code import job.

There is always such a row for any active import, but it will not run until date_due is in the past.

Int id Undocumented
Datetime date_created Undocumented
Object code_import The code import that is being worked upon.
Object machine The machine job is currently scheduled to run on, or where the job is currently running.
Datetime date_due When the import should happen.
Choice state The current state of the job.
Object requesting_user The user who requested the import, if any.
Int ordering A measure of how urgent the job is -- queue entries with lower 'ordering' should be processed first, or in other words 'ORDER BY ordering' returns the most import jobs first.
Datetime heartbeat While the job is running, this field should be updated frequently to indicate that the import job hasn't crashed.
Text logtail The last few lines of output produced by the running job. It should be updated at the same time as the heartbeat.
Datetime date_started When the import began to be processed.
Method isOverdue Return whether self.date_due is now or in the past.
Method makeWorkerArguments Return a list of worker arguments for this job.
id =
Undocumented
date_created =
Undocumented
code_import =
The code import that is being worked upon.
machine =
The machine job is currently scheduled to run on, or where the job is currently running.
date_due =
When the import should happen.
state =
The current state of the job.
requesting_user =
The user who requested the import, if any.
ordering =
A measure of how urgent the job is -- queue entries with lower 'ordering' should be processed first, or in other words 'ORDER BY ordering' returns the most import jobs first.
heartbeat =
While the job is running, this field should be updated frequently to indicate that the import job hasn't crashed.
logtail =
The last few lines of output produced by the running job. It should be updated at the same time as the heartbeat.
date_started =
When the import began to be processed.
def isOverdue():
Return whether self.date_due is now or in the past.

This method should be used in preference to comparing date_due to the system clock. It does the correct thing, which is to compare date_due to the time of the current transaction.

def makeWorkerArguments():
Return a list of worker arguments for this job.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.