Skip to Main Content
Jedox Ideas

Let us know how we can make Jedox even better!

Status Future consideration
Workspace Jedox Platform
Created by Guest
Created on Sep 28, 2022

integrator_start_job: optional parameter allowing similar executions

in the function integrator_start_job there is a condition checking whether the very same job (check is done over the locator) is currently running:


if(intval($count) > 0){
// if so print status and exit
integrator_set_job_status(null,$status_resource,'Job is already queued or running!');
return false;
}


whereas this is relevant for cube loads, in some other cases this is not convenient, e.g. when triggering a job that generates a unique file. There might be 2 different users that run the job at the same time (thus generating 2 different files). In this case only the first will be executed.

This would be helpful to have an extra optional variable in the function that then overrides the check:

function integrator_start_job_bdg ($project,$job,$variables = array(),$wait = false,$max_duration = 10,$status_resource = array('type' => 'variable', 'name' => 'INTEGRATOR_JOB_STATUS'),$session_id = NULL,$url = NULL,$checkIfRunning = TRUE)

then in the condition:

if ( (intval($count) > 0) && ($checkIfRunning) ){
// if so print status and exit
integrator_set_job_status(null,$status_resource,'Job is already queued or running!');
return false;
}

The footprint would be kept low since it would be set to TRUE per default

  • ADMIN RESPONSE
    Sep 30, 2022

    Thank you for your great idea. While we cannot commit to a specific target version, we will consider adding it to our future internal backlog. If you can add further information about the context of this feature, please add it here so we can evaluate it more fully.