Move get_workflow_script_by_cache_key_value to replica (#4303)

This commit is contained in:
Stanislav Novosad
2025-12-15 16:05:14 -07:00
committed by GitHub
parent 781bd13c5a
commit 1e5b8b36c1
2 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ async def get_workflow_script(
rendered_cache_key_value = ""
try:
parameter_tuples = await app.DATABASE.get_workflow_run_parameters(
parameter_tuples = await app.REPLICA_DATABASE.get_workflow_run_parameters(
workflow_run_id=workflow_run.workflow_run_id,
)
parameters = {wf_param.key: run_param.value for wf_param, run_param in parameter_tuples}
@@ -78,7 +78,7 @@ async def get_workflow_script(
return None, rendered_cache_key_value
# Check if there are existing cached scripts for this workflow + cache_key_value
existing_script = await app.DATABASE.get_workflow_script_by_cache_key_value(
existing_script = await app.REPLICA_DATABASE.get_workflow_script_by_cache_key_value(
organization_id=workflow.organization_id,
workflow_permanent_id=workflow.workflow_permanent_id,
cache_key_value=rendered_cache_key_value,