mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-19 08:28:10 +02:00
fix: merge initial context during update workflow run
This commit is contained in:
parent
d2cda85b78
commit
7efc19c812
1 changed files with 6 additions and 1 deletions
|
|
@ -376,7 +376,12 @@ class WorkflowRunClient(BaseDBClient):
|
||||||
if cost_info:
|
if cost_info:
|
||||||
run.cost_info = cost_info
|
run.cost_info = cost_info
|
||||||
if initial_context:
|
if initial_context:
|
||||||
run.initial_context = initial_context
|
# Merge initial context patches so independent call-start/runtime
|
||||||
|
# writers do not erase keys stored earlier in the run lifecycle.
|
||||||
|
run.initial_context = {
|
||||||
|
**(run.initial_context or {}),
|
||||||
|
**initial_context,
|
||||||
|
}
|
||||||
if gathered_context:
|
if gathered_context:
|
||||||
# Lets merge the incoming gathered context keys with the existing ones
|
# Lets merge the incoming gathered context keys with the existing ones
|
||||||
run.gathered_context = {
|
run.gathered_context = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue