copy_jobs#

ProjectApi.copy_jobs(jobs, wait=True)#

Create jobs by copying existing jobs.

Return type:

Union[str, List[str]]

Parameters:
jobsList[Job]

List of jobs. Note that only the id field of the Job objects must be filled. The other fields can be empty.

waitbool, optional

Whether to wait for the copy to complete. The default is True.

Returns:
Union[List[str], str]

If wait=True, returns the list of newly created job IDs. If wait=False, returns an operation ID that can be used to track progress.