ALIce Job Submitting Error

Dear Expert
i want to submit the following jobs
alienHandler->AddRunNumber(282367);
alienHandler->AddRunNumber(282366);
alienHandler->AddRunNumber(282365);

on Grid with the following commands
alienHandler->SetSplitMaxInputFileNumber(30);
alienHandler->SetExecutable(“myTask.sh”);
// specify how many seconds your job may take
alienHandler->SetTTL(10000);
alienHandler->SetJDLName(“myTask.jdl”);

    alienHandler->SetOutputToRunNo(kTRUE);
    alienHandler->SetKeepLogs(kTRUE);
    // merging: run with kTRUE to merge on grid
    // after re-running the jobs in SetRunMode("terminate") 
    // (see below) mode, set SetMergeViaJDL(kFALSE) 
    // to collect final results
    alienHandler->SetMaxMergeStages(1);
    alienHandler->SetMergeViaJDL(kTRUE);

    // define the output folders
    alienHandler->SetGridWorkingDir("myWorkingDir02aug10");
    alienHandler->SetGridOutputDir("myOutputDir2aug10");

    // connect the alien plugin to the manager
    mgr->SetGridHandler(alienHandler);
    if(gridTest) {
        // speficy on how many files you want to run
        alienHandler->SetNtestFiles(1);
        // and launch the analysis
        alienHandler->SetRunMode("test");
        mgr->StartAnalysis("grid");
    } else {
        // else launch the full grid analysis
        alienHandler->SetRunMode("**terminate"**);
        mgr->StartAnalysis("grid");

But found the following errors
===== MERGING OUTPUTS REGISTERED BY YOUR ANALYSIS JOB: AnalysisTaskExample
Info in AliAnalysisAlien::MergeOutputs: Submitting merging JDL

Submitting merging job for run <000282367>

Error in : Cannot start Stage_2 merging since Stage_1 did not produced yet output

Submitting merging job for run <000282366>

Error in : Cannot start Stage_2 merging since Stage_1 did not produced yet output

Submitting merging job for run <000282365>

Error in : Cannot start Stage_2 merging since Stage_1 did not produced yet output

Therefore it is requested to the dear expert please guide me

@grigoras I think that this one is for you.

Hi,

@amukhtar, is this still the case? I see your latest jobs are essentially DONE, including the merging. The root cause of the error reported above is somewhere in the analysis, the first step doesn’t produce the expected output files or jobs were failing. Thus the merging cannot be submitted. Since the last job IDs are OK ( 1677769551, 1677778825 ), you have probably addressed this already. For the future please include job IDs with the reports so we look at the same data as you.

Cheers,

.costin

now solved this problem