WaitForInternalJobs function for IBM Planning Analytics (TM1)


WaitForInternalJobs function for IBM Planning Analytics (TM1)

WaitForInternalJobs waits for all asynchronous jobs directly launched by the current process to be completed before continuing the current process. This function is useful in cases when it is not feasible to acquire an asynchronous job ID, as in WaitForAllJobs() and WaitForAnyJobs(), or whenever you want a process to wait for all asynchronous jobs to finish.

In this video, WaitForInternalJobs will be used to wait for both asynchronous processes to complete before continuing to the next line.

Where can the WaitForAllJobs function be used?

TurboIntegrator

Which TM1 Server version is the WaitForAllJobs function available for?

Version 12

What is the syntax for WaitForAllJobs?

WaitForInternalJobs()

Relevant Functions

  • CancelJobs: cancel asynchronous processes that were launched by the RunProcess function and are blocked due to certain conditions. Any pending changes in a job cancelled with CancelJobs are rolled back.
  • GetJobStatus: return the status for a specified process.
  • WaitforAllJobs: instructs the main process to wait for all specified asynchronously executed processes to complete before continuing the main process.
  • WaitForAnyJobs: instruct a main process to wait for any specified asynchronously executed processes to complete before continuing the main process.
  • WaitForInternalJobs: wait for all asynchronous jobs that are directly launched by the current process to complete before continuing the current process.