cache get_workflow_script_by_cache_key_value query and re-enable post action execution to generate code (#4385)

This commit is contained in:
Shuchang Zheng
2026-01-04 15:56:51 -08:00
committed by GitHub
parent 537cb793a6
commit a667bc598b
3 changed files with 70 additions and 4 deletions

View File

@@ -639,5 +639,4 @@ class AgentFunction:
)
async def post_action_execution(self, action: Action) -> None:
return
# asyncio.create_task(self._post_action_execution(action))
asyncio.create_task(self._post_action_execution(action))

View File

@@ -441,7 +441,7 @@ async def get_workflow_script_blocks(
cache_key = block_script_request.cache_key or workflow.cache_key or ""
status = block_script_request.status
script = await app.DATABASE.get_workflow_script_by_cache_key_value(
script = await workflow_script_service.get_workflow_script_by_cache_key_value(
organization_id=current_org.organization_id,
workflow_permanent_id=workflow_permanent_id,
workflow_run_id=block_script_request.workflow_run_id,