<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NCX94J4" height="0" width="0" style="display:none;visibility:hidden"></iframe>

WaitForAllJobs function for IBM Planning Analytics (TM1)

    WaitForAllJobs is a TurboIntegrator function, available from TM1 Server version 12, that instructs the main process to wait for all specified asynchronously executed processes to complete before continuing the main process. This can be particularly useful when you have multiple jobs running in parallel, and you need to ensure that all these jobs have been completed before moving on to the next steps in your script.

    In the video, WaitForAllJobs is used to wait for two processes processes before continuing to complete.

    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?

        WaitForAllJobs(ID1, ID2, etc.)

        • ID1, ID2, etc.: The job ID of each asynchronous process

        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.