BackgroundJobsManager.GetBackgroundJobs

Syntax:

GetBackgroundJobs(<Filter>)

Parameters:

<Filter> (optional)

Type: Structure.
Structure defining the filter. Structure values can be the following: UUID, Key, State, Begin, End, Description, MethodName, ScheduledJob.
If no filter is set, all tasks are included.
If the filter is based on states, then the value State of the structure can be BackgroundJobState enumeration if the filter includes only one state, or an array of BackgroundJobState enumerations if the filter includes several states.
If the filter is based on scheduled job, then all background jobs, created on specified background job, are included.
The filter based on Begin receives all background jobs launched after specified date.
The filter based on End receives all background jobs finished before specified date.

Returned value:

Type: Array.

Description:

Obtains array of BackgroundJob objects by specified filter. Only administrator or user who started job execution can obtain the job.

Availability:

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

    

1C:Enterprise Developer's Community