IBM Security QRadar SOAR

 View Only
Expand all | Collapse all

Simultanously executing the same function multiple times

  • 1.  Simultanously executing the same function multiple times

    Posted Mon November 20, 2023 04:05 PM

    Hi all,

    I don't recall where, but I think I read once that we should not call the same function multiple times simultanously in a playbook.  Something to do with message queues getting mixed up or ...

    My use case is this: I am currently developping a playbook where I would call from 1 to 7 Linux network shell  functions simultanously, each one to execute a different remote shell command.

    If what I think I read is true should'nt I be better to laucnh them one after the other?



    ------------------------------
    Pierre Dufresne
    ------------------------------


  • 2.  RE: Simultanously executing the same function multiple times

    Posted Tue November 21, 2023 06:03 AM

    Yes, it would be better to have the playbook run one function then have a wait decision point. After the wait run the next function and so on. 



    ------------------------------
    Richard Swierk
    ------------------------------



  • 3.  RE: Simultanously executing the same function multiple times
    Best Answer

    Posted Tue November 21, 2023 08:16 AM

    Hi Pierre,

    There are no restrictions for running the same function in parallel in the same playbook. This operation is no different than the same function running on different playbooks on different incidents at the same time. How you manage the results of each function is important to work out.

    Regards,

    Mark



    ------------------------------
    Mark Scherfling
    ------------------------------