WaitForCompletion(<BackgroundTasks>, <Timeout>)


<BackgroundTasks> (required)

Type: Array.
Array of background jobs which completion should be awaited.

<Timeout> (optional)

Type: Number.
Time out (in seconds) of task completion. If time out is not set, the system will wait for completion of all tasks or till the first abnormal termination of a task.


Waits for completion of all background jobs from the list. If at least one job is terminated abnormally, waiting is terminated and job execution error is displayed. In case of timeout, error waiting message is displayed. Only administrator or a user who launched the jobs can wait for their completion.


Server, thick client, external connection, Mobile application (server).


1C:Enterprise Developer's Community