Revert "Move get_workflow_script_by_cache_key_value to replica" (#4305)
This commit is contained in:
committed by
GitHub
parent
65b12f7ade
commit
1a3d568198
@@ -66,7 +66,7 @@ async def get_workflow_script(
|
||||
rendered_cache_key_value = ""
|
||||
|
||||
try:
|
||||
parameter_tuples = await app.REPLICA_DATABASE.get_workflow_run_parameters(
|
||||
parameter_tuples = await app.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.REPLICA_DATABASE.get_workflow_script_by_cache_key_value(
|
||||
existing_script = await app.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,
|
||||
|
||||
Reference in New Issue
Block a user