BackgroundJob.WaitForCompletion

Syntax:

WaitForCompletion(<Timeout>)

Parameters:

<Timeout> (optional)

Type: Number.
Time out (in seconds) of a job completion. If time out is not set, the system will wait for completion of the job.

Description:

Wait for successful completion of the job. If the job was terminated abnormally, waiting is terminated and task execution error is displayed. In case of timeout, error waiting message is displayed. Only administrator or a user who launched the job can wait for its completion.

Availability:

Server, thick client, external connection.

    

1C:Enterprise Developer's Community