Part of lp.code.interfaces.codeimportjob View In Hierarchy
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. |