Function | get_import_for_branch_name | Return the code import associated with the branch. |
Function | make_running_import | Return a code import with a running job. |
Function | make_finished_import | Return a code import with a new finished job. |
Function | make_all_result_types | Make a code import result of each possible type for the code import. |
Parameters | code_import | The code import to create the job for. If None, an anonymous CodeImport is created. |
machine | The CodeImportMachine to associate with the running
job. If None, an anonymous CodeImportMachine is created. | |
date_started | If specified this overrides the UTC_NOW timestamp of the newly started job. | |
factory | The LaunchpadObjectFactory to use for the creation of the objects. If None, one is created. | |
logtail | An optional string to put in the logtail field of the job. |
Parameters | code_import | The code import to create the job for. If None, an anonymous CodeImport is created. |
status | The result status. If not specified it is set to SUCCESSFUL. | |
date_finished | If specified this overrides the date_last_successful attribute of the code_import if the state is SUCCESSFUL. | |
factory | The LaunchpadObjectFactory to use for the creation of the objects. If None, one is created. |