Thread
#prefect-community
    Newskooler

    Newskooler

    1 year ago
    Hey Prefect community! 👋 Is there a way to control the order of mapped executions (I use local dask executor)? I noticed that once mapped (and scheduled) the actual execution is quite random… Whereas in my case, I need to be consecutive in the order I have provided it). Any help would be much appreciated! 🙂
    e

    Enda Peng

    1 year ago
    When you use
    map
    function, you already make the assumption that the task could be executed in a random order. I’d suggest you ament your flow to enforce the order of your tasks
    Kevin Kho

    Kevin Kho

    1 year ago
    Hi @Newskooler! There is no way to do this at the moment. You may be interested in following this issue . If you need sequential dependencies, you unfortunately probably need to rearchitect for now as Enda said.
    Newskooler

    Newskooler

    1 year ago
    Thank you @Enda Peng and @Kevin Kho What would be the suggested way to re-architect it in this case?
    That’s exactly what I need. It will be cool if you implement it at some point : )
    Kevin Kho

    Kevin Kho

    1 year ago
    Maybe look at this for how to set sequential dependencies in a loop. Yes please feel free to chime in on the issue.