Causing an Execute Process to wait

rachel_lomasky
rachel_lomasky New Altair Community Member
edited November 2024 in Community Q&A

I'm doing 3 "Execute process" calls in a row:

1. cURL to get an id

2. cURL to download a file with the id

3. unzip of the file

 

It seems that they are not waiting for each other, so the 2. is executing before 1 is truly done.  Is there a "wait until the predecessor is done" option?  I know about the "Delay" operator and putting those in does work.  But I was hoping I wouldn't have to basically put in the worst case delay.

Tagged:

Answers

  • Thomas_Ott
    Thomas_Ott New Altair Community Member

    Something sounds strange, usually the 2nd Execute Process will trigger after the 1st one is done and so forth. The 2nd process can't execute without getting the ID from the 1st process, right? Does this crash?

  • rachel_lomasky
    rachel_lomasky New Altair Community Member

    No, it doesn't crash.  It just executes too soon.  When I put the delay in, it works fine.

  • Thomas_Ott
    Thomas_Ott New Altair Community Member

    Hmm, hard to know with out seeing the process and data. I'm guessing RM thinks the process 1 is done but it really isn't. 

  • Edin_Klapic
    Edin_Klapic New Altair Community Member

    Hi Rachel,

    assuming you execute the cURL command within in Execute Program Operator RapidMiner views it as finished when the command is triggered.

    Do you have the In and Output Ports of the Execute Process Operators connected? You might try that and check the Use Input checkbox.

    Do you have the same problems when you execute everything within one process?

     

    Best regards,

    Edin

  • JEdward
    JEdward New Altair Community Member

    I'm trying to build a process to replicate at my end, but haven't had luck so far as it seems to work each time for my one. 

    Is there any chance you could anonymise an example process for us to have a closer look at?  

     

    Also, have you tried turning off cache process on the Execute Process for Step 2?    That might help a bit.