Commit 0d0c17f
authored
Fix api_call actions running async in production, breaking book recommendations (#584)
In production (GCP), api_call actions were enqueued to Cloud Tasks and
processed asynchronously. This caused the recommendation sub-flow to
return without book results — the flow continued to "Happy reading!"
without ever showing books.
Three fixes:
- Remove api_call from async_actions set in ActionNodeProcessor so book
recommendation queries run synchronously within the chat flow
- Respect wait_for_acknowledgment in composite sub-flow processing loop
- Flatten message results and handle COMPOSITE node type in parent flow
return processing to prevent nested message dicts in responses1 parent 1e27a26 commit 0d0c17f
File tree
3 files changed
+46
-3
lines changed- app/services
3 files changed
+46
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1657 | 1657 | | |
1658 | 1658 | | |
1659 | 1659 | | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
1660 | 1677 | | |
1661 | 1678 | | |
1662 | 1679 | | |
| |||
1688 | 1705 | | |
1689 | 1706 | | |
1690 | 1707 | | |
| 1708 | + | |
1691 | 1709 | | |
1692 | 1710 | | |
1693 | 1711 | | |
1694 | 1712 | | |
1695 | | - | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
1696 | 1719 | | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
1697 | 1726 | | |
1698 | 1727 | | |
1699 | 1728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
666 | 677 | | |
667 | 678 | | |
668 | 679 | | |
| |||
0 commit comments