# I need help with a bug in the execution order of Tasks within Flow. The order of execution of the Tasks is apparently inverted, I use the default template of the CLI. during the structuring of the project

**URL:** <https://community.crewai.com/t/i-need-help-with-a-bug-in-the-execution-order-of-tasks-within-flow-the-order-of-execution-of-the-tasks-is-apparently-inverted-i-use-the-default-template-of-the-cli-during-the-structuring-of-the-project/859>\
**Category:** Crews\
**Tags:** crewai\
**Created:** [October 17, 2024, 10:47pm UTC](https://community.crewai.com/t/i-need-help-with-a-bug-in-the-execution-order-of-tasks-within-flow-the-order-of-execution-of-the-tasks-is-apparently-inverted-i-use-the-default-template-of-the-cli-during-the-structuring-of-the-project/859 "2024-10-17T22:47:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luandetoni](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/luandetoni/32/402_2.png) [@luandetoni](https://community.crewai.com/u/luandetoni)\
**Post date:** [October 17, 2024, 10:47pm UTC](https://community.crewai.com/t/i-need-help-with-a-bug-in-the-execution-order-of-tasks-within-flow-the-order-of-execution-of-the-tasks-is-apparently-inverted-i-use-the-default-template-of-the-cli-during-the-structuring-of-the-project/859/1 "2024-10-17T22:47:33Z")

</div>

I need help with a bug in the execution order of Tasks within Flow. The order of execution of the Tasks is apparently inverted, I use the default template of the CLI. during the structuring of the project.

---

<div class="post-metadata">

**Author:** ![rokbenko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rokbenko/32/492_2.png) [@rokbenko](https://community.crewai.com/u/rokbenko)\
**Post date:** [October 18, 2024, 7:03am UTC](https://community.crewai.com/t/i-need-help-with-a-bug-in-the-execution-order-of-tasks-within-flow-the-order-of-execution-of-the-tasks-is-apparently-inverted-i-use-the-default-template-of-the-cli-during-the-structuring-of-the-project/859/2 "2024-10-18T07:03:08Z")

</div>

@luandetoni Please show us the code. In my experience, everything works as expected using Flows.

Are you using a hierarchical process?
