Part of lp.codehosting.codeimport.tests.test_workermonitor.TestWorkerMonitorRunNoProcess View In Hierarchy
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. |
Parameters | job_id | The ID of the CodeImportJob we are to work on. |
logger | A Logger object. |