l.c.c.t.t.T.WorkerMonitor(CodeImportWorkerMonitor) : class documentation

Part of lp.codehosting.codeimport.tests.test_workermonitor.TestWorkerMonitorRunNoProcess View In Hierarchy

See CodeImportWorkerMonitor.

Override _launchProcess to return a deferred that we can callback/errback as we choose. Passing has_job=False to the constructor will cause getWorkerArguments() to raise ExitQuietly (this bit is tested above).

Method __init__ Construct an instance.
Method finishJob Call the finishJobID method for the job we are working on.
Method _launchProcess Launch the code-import-worker.py child process.

Inherited from CodeImportWorkerMonitor:

Method getWorkerArguments Get arguments for the worker for the import we are working on.
Method updateHeartbeat Call the updateHeartbeat method for the job we are working on.
Method run Perform the import.
Method callFinishJob Call finishJob() with the appropriate status.
Method _logOopsFromFailure Undocumented
Method _trap_nosuchcodeimportjob Undocumented
Method _createLibrarianFileAlias Call IFileUploadClient.remoteAddFile with the given parameters.
Method _makeProcessProtocol Make an CodeImportWorkerMonitorProtocol for a subprocess.
Method _silenceQuietExit Quietly swallow a ExitQuietly failure.
Method _reasonToStatus Translate the 'reason' for process exit into a result status.
def __init__(self, process_deferred, has_job=True):
Construct an instance.
Parametersjob_idThe ID of the CodeImportJob we are to work on.
loggerA Logger object.
def _launchProcess(self, worker_arguments):
Launch the code-import-worker.py child process.
def finishJob(self, status):
Call the finishJobID method for the job we are working on.

This method uploads the log file to the librarian first.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.