Skip to content

Job Manager Subsystem for Blueprint

Subsystem Methods

NameDescription
GetNumJobsGet the total number of jobs in the queue.
CancelJobCancels the job with the given ID. If the job has already started it may or may not listen to the request.
CancelAllJobsCancels all the jobs in the queue. If any job has already started it may or may not listen to the request.
IsPendingJobsPausedChecks if the job manager has been asked to pause.
PausePendingJobsPause pending jobs. No new jobs will be started, but those already running will continue on. Call ResumePendingJobs() to be able to run the jobs again.
ResumePendingJobsResume running pending jobs. Called after PausePendingJobs() have been called and when the jobs can be started again.
WaitForJobToCompleteWaits for the job with the given ID to complete.
WaitForAllJobsToCompleteWaits for all the jobs in the job queue to complete.

Subsystem Properties

NameDescription
OnJobAddedCalled when a new job has been added.
OnJobCompletedCalled when a job has completed.
OnJobProgressUpdatedCalled when a job's progress is updated.
OnJobStateChangedCalled when a job's state changes.

Data structs

NameDescription
JobInfoRepresents a snapshot of a job's state and related information.

Enums

NameDescription
JobStateThis enum specifies what state the job has.

Functions details

GetNumJobs

Get the total number of jobs in the queue.

CancelJob

Cancels the job with the given ID. If the job has already started it may or may not listen to the request.

CancelAllJobs

Cancels all the jobs in the queue. If any job has already started it may or may not listen to the request.

IsPendingJobsPaused

Checks if the job manager has been asked to pause.

PausePendingJobs

Pause pending jobs. No new jobs will be started, but those already running will continue on. Call ResumePendingJobs() to be able to run the jobs again.

ResumePendingJobs

Resume running pending jobs. Called after PausePendingJobs() have been called and when the jobs can be started again.

WaitForJobToComplete

Waits for the job with the given ID to complete.

WaitForAllJobsToComplete

Waits for all the jobs in the job queue to complete.

Properties details

OnJobAdded

Called when a new job has been added.

OnJobCompleted

Called when a job has completed.

OnJobProgressUpdated

Called when a job's progress is updated.

OnJobStateChanged

Called when a job's state changes.

Data structs details

JobInfo

Represents a snapshot of a job's state and related information.

Enums details

JobState

This enum specifies what state the job has.